aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/taxonomy
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-20 12:54:58 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-20 14:20:32 +0200
commit4d546d8c89aeafb6cebff16ca5b8cef501233ab1 (patch)
tree8c665456e0cdc30f4089f906dca46a00822a3e1f /layouts/taxonomy
parent4a81bf5b7a307d9b448f98ffcaa489be2227d1f2 (diff)
downloadhugo-minimalist-theme-4d546d8c89aeafb6cebff16ca5b8cef501233ab1.tar.gz
hugo-minimalist-theme-4d546d8c89aeafb6cebff16ca5b8cef501233ab1.tar.bz2
hugo-minimalist-theme-4d546d8c89aeafb6cebff16ca5b8cef501233ab1.zip
Metadata taxonomies link and style
Diffstat (limited to 'layouts/taxonomy')
-rw-r--r--layouts/taxonomy/terms.html62
1 files changed, 40 insertions, 22 deletions
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
index 73856b3..75efd98 100644
--- a/layouts/taxonomy/terms.html
+++ b/layouts/taxonomy/terms.html
@@ -1,35 +1,53 @@
+{{ define "hero" }}
+ {{ partial "hero.html" . }}
+{{ end }}
+
{{ define "main" }}
-<section class="mw7 center">
- <h2 class="baskerville f2 fw1 ph3 ph0-l near-black lh-title">{{ .Title }}</h2>
- <section class="">
- {{ range .Data.Terms.ByCount }}
- <a class="dib near-black link grow hover-bg-white-80 hover-near-black pa2 ba ma1 br2" href="#{{ .Name | urlize }}-list" data-tag="{{ .Name | lower }}">
- {{ .Name }}
+ <section class="mw7 center">
+ <section class="mt3">
+ {{ range .Data.Terms.ByCount }}
+ <a
+ class="dib near-black link grow hover-bg-white-80 hover-near-black pa2 ba ma1 br2"
+ href="#{{ .Name | urlize }}-list"
+ data-tag="{{ .Name | lower }}"
+ >
+ {{ .Name }}
</a>
- {{ end }}
+ {{ 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-black" href="{{ .Name | urlize }}">
- {{ .Name }} ({{ .Pages | len }})
+ {{ 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 color-inherit" href="{{ .Name | urlize }}">
+ {{ .Name }} ({{ .Pages | len }})
</a>
- </h4>
- <ul class="list ml0">
+ </h4>
+ <ul class="list ph5">
{{ range .Pages.ByDate }}
- <li class="lh-copy">
- <a class="link dim near-black" href="{{ .Permalink }}">
- {{ .Title }}
+ <li class="lh-copy stripe-dark ph1 pv2">
+ {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+ <time
+ datetime="{{ .Date.Format "2006-01-02" }}"
+ class="f6 fw3 fr ml2"
+ >
+ <i class="far fa-calendar"></i>
+ {{ .Date.Format $dateFormat }}
+ </time>
+ <a class="link dim color-inherit" href="{{ .Permalink }}">
+ {{ .Title }}
</a>
- <span class="white-60"> - {{ .Date | time.Format ":date_long" }}</span>
- </li>
+ </li>
{{ end }}
- </ul>
+ </ul>
</div>
- {{ end }}
+ {{ end }}
</section>
-</section>
+ </section>
{{ end }}