summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/recent_blog.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/recent_blog.html')
-rw-r--r--layouts/shortcodes/recent_blog.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/recent_blog.html b/layouts/shortcodes/recent_blog.html
new file mode 100644
index 0000000..8a4ec89
--- /dev/null
+++ b/layouts/shortcodes/recent_blog.html
@@ -0,0 +1,9 @@
+<ul>
+{{ range first 3 (where .Site.RegularPages "Section" "blog") }}
+ <li class="post">
+ {{.BundleType}}
+ <span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format "January 2, 2006" }}</span>
+ <p>{{ .Summary }}</p>
+ </li>
+{{ end }}
+</ul> \ No newline at end of file