Better place to show tags in gemini
This commit is contained in:
parent
e211f5d41f
commit
60141b41d2
|
@ -11,6 +11,5 @@
|
|||
{{ range (where .Site.RegularPages "Section" "posts") }}
|
||||
{{- if .OutputFormats.Get "gemtext" }}
|
||||
=> {{replace (replace .RelPermalink "/gemini" "" 1) "/index.gmi" ".gmi" 1}} {{ .Date.Format "2006-01-02" }} · {{.Title | safeHTML}}{{ end }}
|
||||
{{ partial "tags.gmi" (dict "Page" . "Prefix" "> ") -}}
|
||||
{{ .Description }}
|
||||
{{ .Description }}{{ partial "tags.gmi" (dict "Page" . "Prefix" " (tagged " "Postfix" ")") -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ $taxonomy := "tags" -}}
|
||||
{{ with .Page.Param $taxonomy -}}{{ with $.Prefix }}{{ . | safeHTML }}{{ end }}
|
||||
{{- range $index, $tag := . -}}{{- with $.Page.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
||||
{{- if $index -}}, {{ end -}}#{{ $tag | urlize }}{{ end }}{{ end }}{{- end }}
|
||||
{{- if $index -}}, {{ end -}}#{{ $tag | urlize }}{{ end }}{{ end }}{{ with $.Postfix }}{{ . | safeHTML }}{{ end }}{{ end }}
|
||||
|
|
Loading…
Reference in New Issue