FEAT: Working version
This commit is contained in:
10
quickstart/layouts/partials/allTags.html
Normal file
10
quickstart/layouts/partials/allTags.html
Normal 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}}
|
||||
11
quickstart/layouts/partials/tags.html
Normal file
11
quickstart/layouts/partials/tags.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user