mirror of
https://github.com/Extroonie/extroonie.com.git
synced 2026-10-12 17:48:06 -07:00
10 lines
528 B
HTML
10 lines
528 B
HTML
|
|
{{- $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) -}}
|