changed tags templates, tags logic, and config links

This commit is contained in:
kimcc
2020-02-09 21:38:15 -06:00
parent 53f2ace0f4
commit 29e8aa1632
6 changed files with 37 additions and 45 deletions

View File

@@ -9,15 +9,12 @@
{{ template "_internal/disqus.html" . }}
<div class="page-footer">
{{ $taxonomy := "tags" }}
{{ with .Param $taxonomy }}
<hr class="footer-divider">
{{ range $index, $tag := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
{{if .Params.tags}}
{{ range .Params.tags }}
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</div>
{{end}}