2021-04-14 00:23:25 -05:00
|
|
|
<div class="featured postlist gridView">
|
|
|
|
{{ range . }}
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ $image := "" }}
|
|
|
|
{{ if .Params.Image }}
|
|
|
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
|
|
|
{{ $image = .Params.Image }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $image = path.Join "/" (path.Join .File.Dir .Params.Image) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2021-04-14 00:23:25 -05:00
|
|
|
<a class="featuredCardLink" href="{{ .Permalink }}">
|
2021-12-28 03:46:29 -06:00
|
|
|
<article class="featuredCard"
|
2021-04-14 00:23:25 -05:00
|
|
|
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%,
|
2021-04-14 00:23:25 -05:00
|
|
|
rgba(0, 0, 0, 0.7) 100%
|
2022-10-24 01:02:44 -05:00
|
|
|
), url('{{ $image }}');
|
2021-04-14 00:23:25 -05:00
|
|
|
">
|
|
|
|
<div class="contentArea">
|
|
|
|
<h2>{{ .Title }}</h2>
|
|
|
|
<p class="date">
|
2021-07-07 07:33:45 -05:00
|
|
|
<span title='{{ i18n "date" }}'> </span>
|
|
|
|
{{- partial "date.html" .Date -}}
|
2021-04-19 04:42:35 -05:00
|
|
|
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
|
2021-04-14 00:23:25 -05:00
|
|
|
<br />
|
2021-07-07 07:33:45 -05:00
|
|
|
<span title='{{ i18n "tags" }}'> </span>
|
2021-06-16 04:08:07 -05:00
|
|
|
{{ range sort .Params.tags }}
|
2021-04-14 00:23:25 -05:00
|
|
|
#{{ . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|