commit 5d37de83342083dec1b0b3186067ec05867c4b92
parent 52fc1f6956c6319931db18eb252aef7da5b6882c
Author: David Eisinger <[email protected]>
Date: Thu, 2 Mar 2023 22:45:29 -0500
Tag pages
Diffstat:
4 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/content/journal/dispatch-1-march-2023.md b/content/journal/dispatch-1-march-2023.md
@@ -4,6 +4,7 @@ date: 2023-03-02T12:18:17-05:00
draft: false
tags:
- dispatch
+- ebikes
---
With the warm winter we've been having in NC, I've gotten to take Nev to and from daycare on the e-bike a whole bunch, which has been just fantastic. I'm wary of becoming too much of an evangelist, but it really does feel like they can replace cars for a lot of folks, and they're fun as hell.
diff --git a/themes/v2/layouts/_default/tag.html b/themes/v2/layouts/_default/tag.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+ <section>
+ <hr>
+
+ <h3>#{{ .Title }}</h3>
+
+ <ul>
+ {{ range .RegularPages }}
+ <li>
+ <a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </section>
+{{ end }}
diff --git a/themes/v2/layouts/_default/tag.terms.html b/themes/v2/layouts/_default/tag.terms.html
@@ -0,0 +1,16 @@
+{{ define "main" }}
+ <section>
+ <hr>
+
+ <h3>{{ .Title }}</h3>
+
+ <ul>
+ {{ range .Data.Terms.Alphabetical }}
+ <li>
+ <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
+ ({{ .Count }})
+ </li>
+ {{ end }}
+ </ul>
+ </section>
+{{ end }}
diff --git a/themes/v2/layouts/journal/list.html b/themes/v2/layouts/journal/list.html
@@ -2,11 +2,15 @@
<section>
<hr>
- {{ range (where .Site.RegularPages "Type" "in" "journal") }}
- <h3>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- {{ .Date | time.Format "(2006-01-02)" }}
- </h3>
- {{ end }}
+ <h3>Journal</h3>
+
+ <ul>
+ {{ range (where .Site.RegularPages "Type" "in" "journal") }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ .Date | time.Format "(2006-01-02)" }}
+ </li>
+ {{ end }}
+ </ul>
</section>
{{ end }}