diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-09 08:07:03 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-09 08:07:03 -0500 |
| commit | 2ad28cbbfb4287164e7877923291bb18519688fc (patch) | |
| tree | 7a7dac539d2085cb72cd357246620f7f2021f5e8 /layouts/list.html | |
| parent | ebf4af075b194229dd1cf3163b1e3cec1f1d3a0d (diff) | |
| download | samanthony.xyz-2ad28cbbfb4287164e7877923291bb18519688fc.zip | |
replace repo contents with revamped site
Diffstat (limited to 'layouts/list.html')
| -rw-r--r-- | layouts/list.html | 21 |
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 }} |