website/layouts/partials/featured_articles.html

30 lines
1.0 KiB
HTML
Raw Normal View History

<div class="featured postlist gridView">
{{ range . }}
<a class="featuredCardLink" href="{{ .Permalink }}">
<article class="featuredCard"
style="
background-image: linear-gradient(to bottom,
rgba(0, 0, 0, 0) 0%,
2021-04-14 06:28:59 -05:00
rgba(0, 0, 0, 0.1) 45%,
rgba(0, 0, 0, 0.7) 100%
), url('{{ .Params.Image }}');
">
<div class="contentArea">
<h2>{{ .Title }}</h2>
<p class="date">
<span title='{{ i18n "date" }}'></span>
{{- partial "date.html" .Date -}}
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
<br />
<span title='{{ i18n "tags" }}'></span>
2021-06-16 04:08:07 -05:00
{{ range sort .Params.tags }}
#{{ . }}
{{ end }}
{{ end }}
</p>
</div>
</article>
</a>
{{ end }}
</div>