extroonie.com/layouts/partials/description.html
Extroonie 68e2c30928
Some checks failed
Check site / build (push) Has been cancelled
feat: initial commit
2026-09-21 12:31:51 -07:00

9 lines
528 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- $description := .Description | default site.Params.description -}}
{{- if and .IsSection (eq .Section "writing") -}}
{{- $description = (site.GetPage "/writing").Description -}}
{{- else if eq .Kind "term" -}}
{{- $description = printf "Posts and essays tagged #%s by %s." .Data.Term site.Params.author -}}
{{- else if eq .Kind "taxonomy" -}}
{{- $description = printf "Browse %s’s posts and essays by tag." site.Params.author -}}
{{- end -}}
{{- return (partial "text.html" $description | plainify | htmlUnescape) -}}