2021-12-28 03:46:29 -06:00
|
|
|
<article class="card postlistitem">
|
2021-04-15 03:04:06 -05:00
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
</h2>
|
|
|
|
<p class="date">
|
2021-07-07 07:33:45 -05:00
|
|
|
<span title='{{ i18n "date" }}'> </span>
|
|
|
|
{{- partial "date.html" .Date -}}
|
2021-07-06 16:17:14 -05:00
|
|
|
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
|
|
|
|
| <!-- Pipe character as visual separator between date and tags-->
|
2021-07-07 07:33:45 -05:00
|
|
|
<span title='{{ i18n "tags" }}'> </span>
|
2021-07-06 16:17:14 -05:00
|
|
|
{{ range sort .Params.tags }}
|
|
|
|
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
|
|
|
|
{{ end }}
|
2021-04-15 03:04:06 -05:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ if .Site.Params.imageInArticlePreview }}
|
|
|
|
{{ if .Params.Image }}
|
2022-03-10 03:36:40 -06:00
|
|
|
<a class="unstyledLink" href="{{ .Permalink }}">
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
|
|
|
<img src="{{ .Params.Image }}" />
|
|
|
|
{{ else }}
|
|
|
|
<img src="/{{ path.Join .File.Dir .Params.Image }}" />
|
|
|
|
{{ end }}
|
2022-03-10 03:36:40 -06:00
|
|
|
</a>
|
2021-04-15 03:04:06 -05:00
|
|
|
{{ end }}
|
|
|
|
{{end}}
|
2021-06-09 13:54:12 -05:00
|
|
|
{{ if (site.Params.articleSummary | default true) }}
|
|
|
|
<div class="articlePreview">
|
2022-04-02 10:28:19 -05:00
|
|
|
<p>
|
|
|
|
{{ if .Params.description }}
|
|
|
|
{{ .Params.description }}
|
|
|
|
{{ else }}
|
|
|
|
{{.Summary }}
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
2021-07-07 07:33:45 -05:00
|
|
|
<p><a href="{{ .Permalink }}">{{ i18n "continueReading" }} </a></p>
|
2021-06-09 13:54:12 -05:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-04-15 03:04:06 -05:00
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
</article>
|