Website-Redesign/layouts/partials/article_card.html

33 lines
1.2 KiB
HTML
Raw Normal View History

<article class="card postlistitem">
<div>
<h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
<p class="date">
<span title='{{ i18n "date" }}'></span>
{{- partial "date.html" .Date -}}
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
| <!-- Pipe character as visual separator between date and tags-->
<span title='{{ i18n "tags" }}'></span>
{{ range sort .Params.tags }}
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
{{ end }}
</p>
{{ if .Site.Params.imageInArticlePreview }}
{{ if .Params.Image }}
2022-03-10 03:36:40 -06:00
<a class="unstyledLink" href="{{ .Permalink }}">
<img src="{{ .Params.Image }}" />
</a>
{{ end }}
{{end}}
2021-06-09 13:54:12 -05:00
{{ if (site.Params.articleSummary | default true) }}
<div class="articlePreview">
<p>{{ .Summary }}</p>
<p><a href="{{ .Permalink }}">{{ i18n "continueReading" }} </a></p>
2021-06-09 13:54:12 -05:00
</div>
{{ end }}
</div>
<hr />
</article>