Tags, make dad live

This commit is contained in:
Madison Scott-Clary
2019-08-24 22:28:56 -07:00
parent 0799337af8
commit 3d9a13f3af
21 changed files with 149 additions and 2 deletions

View File

@ -0,0 +1,19 @@
{{ define "main" }}
<main id="main">
<h1>{{ .Title }}</h1>
<ul class="patterns-list">
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<a href="{{ .Permalink }}">
{{ printf "(%d) %s" $count $name }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</main>
{{ end }}