From 3951d65c6156030ddebab693b3d502d7c3481052 Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Sun, 16 Apr 2017 14:40:53 +0000
Subject: [PATCH] add taxonomy templates
---
layouts/_default/taxonomy.html | 18 ++++++++++++++++++
layouts/_default/terms.html | 29 +++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..96eb8da
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -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 }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..d6a819c
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -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 }}
--
Gitblit v1.10.0