aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/taxonomy/terms.html
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
committerÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
commit113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch)
tree7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/taxonomy/terms.html
parente34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff)
downloadhugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip
Import new minimalist design
Diffstat (limited to 'layouts/taxonomy/terms.html')
-rw-r--r--layouts/taxonomy/terms.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
new file mode 100644
index 0000000..babfd87
--- /dev/null
+++ b/layouts/taxonomy/terms.html
@@ -0,0 +1,35 @@
+{{ define "main" }}
+<section class="mw7 center">
+ <h2 class="baskerville f2 fw1 ph3 ph0-l near-white lh-title">{{ .Title }}</h2>
+ <section class="">
+ {{ range .Data.Terms.ByCount }}
+ <a class="dib near-white link grow hover-bg-white-80 hover-near-black pa2 ba ma1 br2" href="#{{ .Name | urlize }}-list" data-tag="{{ .Name | lower }}">
+ {{ .Name }}
+ </a>
+ {{ end }}
+ </section>
+
+ <!-- EACH tag post -->
+ <section class="">
+ {{ range .Data.Terms.ByCount }}
+ <div id="{{ .Name | urlize }}-list" class="pa1 pa2-ns bb" data-tag="{{ .Name | lower }}">
+ <h4 class="f4 bold center lh-title">
+ <a class="link dim near-white" href="{{ .Name | urlize }}">
+ {{ .Name }} ({{ .Pages | len }})
+ </a>
+ </h4>
+ <ul class="list ml0">
+ {{ range .Pages.ByDate }}
+ <li class="pv1 fa-check fas">
+ <a class="link dim near-white lh-copy" href="{{ .Permalink }}">
+ {{ .Title }}
+ </a>
+ <span class="white-60"> - {{ .Date | time.Format ":date_long" }}</span>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ {{ end }}
+ </section>
+</section>
+{{ end }}