lestoitsduval/layouts/shortcodes/actualites.html

17 lines
541 B
HTML

<div class="news">
{{ range (where site.RegularPages "Type" "in" "posts") }}
{{ if or (not .Params.draft) (eq hugo.Environment "development") }}
<article class="card grid -middle -even-reverse">
<div class="card-body cell -7of12">
<div class="card-image cell -5of12">
{{ .Params.Image | absURL }}
</div>
<a href="{{ .RelPermalink }}">
<h3 style="display: inline-block">{{ .Title }}</h3>
</a>
</div>
</article>
{{ end }}
{{ end }}
</div>