summaryrefslogtreecommitdiffstats
path: root/layouts/list.html
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-01-02 18:05:06 -0330
committerSam Anthony <sam@samanthony.xyz>2026-01-02 18:05:06 -0330
commitda7a80e34660456a12f882de7eeaf94ddaab5d44 (patch)
treec11f6668f74bb2c74326920fa683c282ceed2e8b /layouts/list.html
parent11f81b5e1c02f373fce8d5ac7021b509c3cf2292 (diff)
downloadsamanthony.xyz-da7a80e34660456a12f882de7eeaf94ddaab5d44.zip
article: tools-i-use
Diffstat (limited to 'layouts/list.html')
-rw-r--r--layouts/list.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/list.html b/layouts/list.html
new file mode 100644
index 0000000..cc6c7be
--- /dev/null
+++ b/layouts/list.html
@@ -0,0 +1,21 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ <table>
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Title</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .Pages }}
+ {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+ {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
+ <tr>
+ <td><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></td>
+ <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
+ </tr>
+ {{ end }}
+ </tbody>
+ </table>
+{{ end }}