add taxonomy templates

This commit is contained in:
Bud Parr 2017-04-16 10:40:53 -04:00
parent 438cb60fe2
commit 3951d65c61
No known key found for this signature in database
GPG key ID: ACA375160539D2B3
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{{ define "main" }}
<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
<p>Below you will find pages that utilize the taxonomy term “{{ .Title }}”</p>
</div>
</article>
<div class="mw8 center">
{{ $section := .Data.Pages }}
<section class="flex-ns flex-wrap justify-around mt5">
{{ range $section }}
<div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }}
</div>
{{ end }}
</section>
</div>
{{ end }}

View file

@ -0,0 +1,29 @@
{{ define "main" }}
<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
{{ .Content }}
</div>
</article>
<div class="mw8 center">
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
<h1>
{{ $taxonomyname | humanize }}
</h1>
<section class="ph4">
{{ range $key, $value := $taxonomy }}
<h2 class="f1">
<a href="{{ $key | urlize }}" class="link blue hover-black">
{{ $key }}
</a>
</h2>
{{ range $value.Pages }}
{{ partial "summary.html" . }}
{{ end }}
{{ end }}
</section>
{{ end }}
</div>
{{ end }}