summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/older-releases.html
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-27 21:10:51 +0100
committermms <git@sapka.me>2024-11-27 21:10:51 +0100
commit3869f432295372651c28ed9b29b63ec3e8cdbb0e (patch)
tree3e775b6042eb159d71b10d84dd2ce190e2c0a11d /layouts/shortcodes/older-releases.html
parent390afc7c3e61f03c39ba292a021a0d61cad71a4d (diff)
feat: chotto 0.1.0
Diffstat (limited to 'layouts/shortcodes/older-releases.html')
-rw-r--r--layouts/shortcodes/older-releases.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/shortcodes/older-releases.html b/layouts/shortcodes/older-releases.html
new file mode 100644
index 0000000..041b54d
--- /dev/null
+++ b/layouts/shortcodes/older-releases.html
@@ -0,0 +1,10 @@
+{{ $caption := .Inner }}
+{{ $page := .Page }}
+<h2>Older releases</h2>
+
+<ul>
+{{ range (where $page.Site.RegularPages.ByDate.Reverse ".Section" $page.Section ) }}
+<li> <a href="{{ .Permalink }}">{{.Title}}</a>
+ ({{ .PublishDate.Format "2006-01-02" }})</a>
+{{ end }}
+</ul>