aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-16 00:28:40 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-16 00:29:22 +0200
commit487e6410cb1b3d2dcfa5498d51220639c571ed88 (patch)
tree2de1169da5ebe4c61a3b0c98cb47fa11dbe3ff26
parente143b76386ff84d8d7b51c465043aeadfcae97bf (diff)
downloadhugo-minimalist-theme-487e6410cb1b3d2dcfa5498d51220639c571ed88.tar.gz
hugo-minimalist-theme-487e6410cb1b3d2dcfa5498d51220639c571ed88.tar.bz2
hugo-minimalist-theme-487e6410cb1b3d2dcfa5498d51220639c571ed88.zip
Archive taxonomy
-rw-r--r--layouts/_default/archive.terms.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/_default/archive.terms.html b/layouts/_default/archive.terms.html
new file mode 100644
index 0000000..0233daa
--- /dev/null
+++ b/layouts/_default/archive.terms.html
@@ -0,0 +1,21 @@
+{{ define "main" }}
+<div id="content" class="bg-near-white pa2">
+ {{ range (where .Site.RegularPages "Section" "post").GroupByDate "2006" }}
+ <section class="f4 bb b--black-40 mw7 center">
+ <h4 class="">{{ .Key }}</h4>
+
+ {{ range .Pages.GroupByDate "January" }}
+ <ul class="list mv1">
+ <li class="b">{{ .Key }}</li>
+
+ <ul class="pv2">
+ {{ range .Pages }}
+ <li class="black-50"><a href="{{ .Permalink }}" class="f4 dark-gray underline-hover">{{.Title}}</a> - {{ .Date.Format "Jan 2" }}</li>
+ {{ end}}
+ </ul>
+ </ul>
+ {{ end}}
+ </section>
+ {{ end }}
+</div>
+{{ end }}