diff options
| author | t <t@tjp.lol> | 2026-07-12 20:00:15 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-07-12 20:03:27 -0600 |
| commit | 0e602cfa7881f789c3e9f1d5f25db9a8179cd0fc (patch) | |
| tree | 059b4c6761f3f61bc202ed5e685791b96be0074a /weblog/index.html.tmpl | |
| parent | 92bd4424db18b10ec28653ba6c20efe22ef1637b (diff) | |
site updates
Diffstat (limited to 'weblog/index.html.tmpl')
| -rw-r--r-- | weblog/index.html.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weblog/index.html.tmpl b/weblog/index.html.tmpl index 9548c44..435d73c 100644 --- a/weblog/index.html.tmpl +++ b/weblog/index.html.tmpl @@ -18,9 +18,9 @@ <p><a href="{{rel .OutputPath "/feed.xml"}}">Atom feed</a></p> </section> - {{$posts := sortPages (index .Pages "weblog") "post_date"}}{{with $posts}}<section> + {{$posts := sortPages (index .Pages "weblog") "post_date" "mod_time"}}{{with $posts}}<section> <ul class="posts"> - {{range .}}<li><time datetime="{{date (index .Meta "post_date") "2006-01-02"}}">{{date (index .Meta "post_date") "2006-01-02"}}</time><a href="{{rel "weblog/index.html" .OutputPath}}">{{.Title}}</a></li>{{end}} + {{range .}}{{$post_date := or (index .Meta "post_date") .ModTime}}<li><time datetime="{{date $post_date "2006-01-02"}}">{{date $post_date "2006-01-02"}}</time><a href="{{rel "weblog/index.html" .OutputPath}}">{{.Title}}</a></li>{{end}} </ul> </section>{{end}} </main> |
