diff options
Diffstat (limited to 'layouts/shortcodes/posts/recent.html')
| -rw-r--r-- | layouts/shortcodes/posts/recent.html | 6 |
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> + |
