FEAT: Working version

This commit is contained in:
2023-11-15 21:53:43 +00:00
parent b5bfeb9030
commit eae203c531
23 changed files with 576 additions and 28 deletions

View File

@@ -0,0 +1,10 @@
<h2>All Tags</h2>
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} {{ with
$.Site.GetPage (printf "/tags/%s" $name) }}
<div class="tagbutton">
<a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>"
>{{$name}}</a
>
<span>{{$cnt}}</span>
</div>
{{end}} {{end}}

View File

@@ -0,0 +1,11 @@
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
<h2>Tags</h2>
<ul>
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s"
$taxonomy $tag) -}}
<li>
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
</li>
{{- end -}} {{- end -}}
</ul>
{{ end }}