Fix tags too

This commit is contained in:
Joshua Goins 2022-12-28 11:19:11 -05:00
parent 273c1582ca
commit 173ad31d47
2 changed files with 11 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<ul id="all-tags">
{{ range $name, $taxonomy := (index .Site.Taxonomies .Params.listtag) }}
<li><a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a></li>
<li><a href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -1,6 +1,15 @@
{{ if not .IsHome }}
{{- range .Ancestors.Reverse }}
<a href="{{ .Permalink }}">{{ .Title }}</a><span> / </span>
{{ if eq .Title "Arttags" }}
<a href="/art/tags">Tags</a>
{{ else }}
{{ if eq .Title "Characters" }}
<a href="/art/characters">Characters</a>
{{ else }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
<span> / </span>
{{- end }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}