hugo site

This commit is contained in:
Madison Scott-Clary
2019-03-06 00:31:57 -08:00
parent 748b3c1b30
commit 4386102543
174 changed files with 1843 additions and 522 deletions

View File

@ -0,0 +1,21 @@
{{ 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>
<h2>
<a href="{{ .Permalink }}">
{{ printf "(%d) %s" $count $name }}
</a>
</h2>
</li>
{{ end }}
{{ end }}
</ul>
</main>
{{ end }}