summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts/partials/widgets/recent.html
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 15:33:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 15:33:24 +0100
commit7e5ac240a1065f7ed0c426903537e12364e0f52f (patch)
treea13dd7b8dd14e2c38958138a6d21713006d9dfd2 /themes/new_theme/layouts/partials/widgets/recent.html
parent5ff7d4c3584b1df14e4caf8c01f0e7934042c5bb (diff)
downloadwww-andreasbaumann-cc-7e5ac240a1065f7ed0c426903537e12364e0f52f.tar.gz
www-andreasbaumann-cc-7e5ac240a1065f7ed0c426903537e12364e0f52f.tar.bz2
updated to a Wordpress Magazine layout
Diffstat (limited to 'themes/new_theme/layouts/partials/widgets/recent.html')
-rw-r--r--themes/new_theme/layouts/partials/widgets/recent.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/new_theme/layouts/partials/widgets/recent.html b/themes/new_theme/layouts/partials/widgets/recent.html
new file mode 100644
index 0000000..6aaee19
--- /dev/null
+++ b/themes/new_theme/layouts/partials/widgets/recent.html
@@ -0,0 +1,12 @@
+{{- if .Site.Params.widgets.recent_articles }}
+<div class="widget-recent widget">
+ <h4 class="widget__title">Recent Posts</h4>
+ <div class="widget__content">
+ <ul class="widget__list">
+ {{- range first 10 (where .Site.Pages "Section" "blog") }}
+ <li class="widget__item"><a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{- end }}
+ </ul>
+ </div>
+</div>
+{{- end }}