summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/posts/recent.html
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2019-04-29 00:13:49 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2019-04-29 00:13:49 +0100
commit49f746f1ee9205c4028bdc8f18aa888367eb3ddb (patch)
tree8d8b86c72e335a0ebea08e8ed29fb5c7ab439b25 /layouts/shortcodes/posts/recent.html
parent6de514f5ff850ab90495e3230417cf0883940985 (diff)
Initial site layout
Diffstat (limited to 'layouts/shortcodes/posts/recent.html')
-rw-r--r--layouts/shortcodes/posts/recent.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/posts/recent.html b/layouts/shortcodes/posts/recent.html
new file mode 100644
index 0000000..f4b28ca
--- /dev/null
+++ b/layouts/shortcodes/posts/recent.html
@@ -0,0 +1,6 @@
+<ul>
+ {{ range first 5 (where .Site.RegularPages "Section" "posts") }}
+ <li>{{ .Date.Format "2006-01-02" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+</ul>
+