More cleanup, add a new tag.

This commit is contained in:
2023-08-31 02:48:37 +00:00
parent fc10789c9c
commit a8321a07fd
7 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,16 @@
{{- $taxo := "tags" -}}
{{- with .Param $taxo -}}
<div class="meta__item-categories meta__item">
tagged:
<span class="meta__text">
{{- range $index, $category := . }}
{{- $url := urls.Parse ($category | urlize) -}}
{{- $path := $url.Path -}}
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
{{- if gt $index 0 }}, {{ end -}}
<a class="meta__link" href="{{ .RelPermalink }}" rel="category">{{ .Title }}</a>
{{- end }}
{{- end }}
</span>
</div>
{{- end }}