summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/older-releases.html
diff options
context:
space:
mode:
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>