You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
652 B
HTML
28 lines
652 B
HTML
{{ $page := . }}
|
|
|
|
{{ $result := slice }}
|
|
|
|
{{ with $page.Keywords }}
|
|
{{ $result = . }}
|
|
{{ end }}
|
|
|
|
{{ with $page.GetTerms "categories" }}
|
|
{{ range . }}
|
|
{{ $result = $result | append (.Title | markdownify | plainify | htmlUnescape) }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $result = $result | append $page.Params.categories }}
|
|
{{ end }}
|
|
|
|
{{ with $page.GetTerms "tags" }}
|
|
{{ range . }}
|
|
{{ $result = $result | append (.Title | markdownify | plainify | htmlUnescape) }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $result = $result | append $page.Params.tags }}
|
|
{{ end }}
|
|
|
|
{{ $result = delimit ($result | uniq | sort) ", " }}
|
|
|
|
{{ return $result }}
|