website/layouts/partials/widgets/recent_articles.html
2020-01-12 21:05:46 +01:00

18 lines
482 B
HTML

{{ if .Site.Params.widgets.recent_articles }}
<div class="widget-wrap">
<div class="widget">
<ul id="recent-post">
<li id="first-recent"><a href="/index.xml" id="firstmove" class="move">
<h3 class="widget-title">
Posts
</h3>
</a></li>
{{ range first 10 (where .Site.RegularPages "Type" "post") }}
<li><a href="{{ .Permalink }}" class="move"> {{ .Title }}</a> </li>
{{ end }}
</ul>
</div>
</div>
{{ end }}