Erster Entwurf
This commit is contained in:
commit
b5d27b3fc9
66 changed files with 11671 additions and 0 deletions
13
themes/mainroad/layouts/partials/widgets/recent.html
Normal file
13
themes/mainroad/layouts/partials/widgets/recent.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue