aboutsummaryrefslogtreecommitdiff
path: root/themes/flamingo/layouts/partials/sidebar.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/flamingo/layouts/partials/sidebar.html')
-rw-r--r--themes/flamingo/layouts/partials/sidebar.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html
new file mode 100644
index 0000000..92bbd80
--- /dev/null
+++ b/themes/flamingo/layouts/partials/sidebar.html
@@ -0,0 +1,14 @@
+<aside>
+ <div>
+ <div>
+ <h3>LATEST POSTS</h3>
+ </div>
+ <div>
+ <ul>
+ {{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+</aside>