Tag pages
This commit is contained in:
@@ -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.
|
||||
|
||||
15
themes/v2/layouts/_default/tag.html
Normal file
15
themes/v2/layouts/_default/tag.html
Normal file
@@ -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 }}
|
||||
16
themes/v2/layouts/_default/tag.terms.html
Normal file
16
themes/v2/layouts/_default/tag.terms.html
Normal file
@@ -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 }}
|
||||
@@ -2,11 +2,15 @@
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h3>Journal</h3>
|
||||
|
||||
<ul>
|
||||
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
|
||||
<h3>
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</h3>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user