aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html20
-rw-r--r--layouts/_default/terms.html19
2 files changed, 23 insertions, 16 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 7c9593d..dd42aa7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,20 +1,8 @@
{{ define "main" }}
-<section class="bg-near-white">
- <ul>
- {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
- <li><a href="/{{ $taxonomyname | urlize }}">{{ $taxonomyname }}</a>
- <ul>
- {{ range $key, $value := $taxonomy }}
- <li> {{ $key }} </li>
- <ul>
- {{ range $value.Pages }}
- <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li>
- {{ end }}
- </ul>
- {{ end }}
- </ul>
- </li>
+<section class="bg-near-white pb2">
+ {{ range .Paginator.Pages }}
+ {{ .Render "summary" }}
{{ end }}
- </ul>
+ {{ partial "pagination.html" . }}
</section>
{{ end }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..37bdb87
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+<div id="content" class="bg-near-white pa2">
+ <section class="mw7 center">
+ {{ range .Data.Terms.ByCount }}
+ <h4 class="f4">
+ <a href="{{ .Name }}" class="dark-gray underline-hover">
+ {{ .Name }} ({{ .Pages | len }})
+ </a>
+ </h4>
+
+ <ul class="bb b--black-50 pb2">
+ {{ range .Pages.ByDate.Reverse }}
+ <li class="black-50"><a href="{{ .Permalink }}" class="f4 dark-gray underline-hover">{{.Title}}</a> - {{ .Date.Format "Jan 2, 2006" }}</li>
+ {{ end}}
+ </ul>
+ {{ end }}
+ </section>
+</div>
+{{ end }}