30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<div class="featured postlist gridView">
|
|
{{ range . }}
|
|
<a class="featuredCardLink" href="{{ .Permalink }}">
|
|
<article class="featuredCard {{ if .Site.Params.discreteCards }}discrete{{ end }}"
|
|
style="
|
|
background-image: linear-gradient(to bottom,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
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="Date"> </span>
|
|
{{ .Date.Format "2006-01-02" }}
|
|
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
|
|
<br />
|
|
<span title="Tags"> </span>
|
|
{{ range sort .Params.tags }}
|
|
#{{ . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</p>
|
|
</div>
|
|
</article>
|
|
</a>
|
|
{{ end }}
|
|
</div>
|