Erster Entwurf

This commit is contained in:
Nis Wechselberg 2018-07-11 20:45:17 +02:00
commit b5d27b3fc9
66 changed files with 11671 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{{- if .Site.Params.widgets.recent_articles }}
<div class="widget-recent widget">
<h4 class="widget__title">{{ T "recent_title" }}</h4>
<div class="widget__content">
<ul class="widget__list">
{{- $recent_articles_num := (.Site.Params.widgets.recent_articles_num | default 10) }}
{{- range first $recent_articles_num (where .Site.RegularPages "Section" "in" (.Site.Params.postSections | default (slice "post"))) }}
<li class="widget__item"><a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }}
</ul>
</div>
</div>
{{- end }}