commit
2b1db71ce3
18
layouts/_default/taxonomy.html
Normal file
18
layouts/_default/taxonomy.html
Normal 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 }}
|
29
layouts/_default/terms.html
Normal file
29
layouts/_default/terms.html
Normal 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 }}
|
Loading…
Reference in a new issue