summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/latest-release.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/latest-release.html')
-rw-r--r--layouts/shortcodes/latest-release.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/latest-release.html b/layouts/shortcodes/latest-release.html
new file mode 100644
index 0000000..df25e3e
--- /dev/null
+++ b/layouts/shortcodes/latest-release.html
@@ -0,0 +1,9 @@
+{{ $caption := .Inner }}
+{{ $page := .Page }}
+{{ range (where $page.Site.RegularPages.ByDate.Reverse ".Section" $page.Section ).Limit 1 }}
+<h2>Latest release (
+ <a href="{{ .Permalink }}">
+ {{ .PublishDate.Format "2006-01-02" }}
+ )</a></h2>
+<p> {{ .Content }}</p>
+{{ end }}