hugo-theme-anubis2/layouts/partials/post-summary.html

19 lines
751 B
HTML
Raw Normal View History

<article class="post-list h-feed">
2020-06-21 22:23:07 +02:00
<header class="post-header">
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
2021-07-08 22:32:45 +02:00
{{ partial "post-language-switcher.html" . }}
2020-06-06 21:05:21 +02:00
</header>
2021-04-13 19:20:58 +02:00
{{ if not .Site.Params.disableSummary }}
<div class="content post-summary p-summary">
{{ .Summary | safeHTML }}
2021-04-13 19:20:58 +02:00
</div>
{{ end }}
2020-08-12 21:25:08 +02:00
{{ if and (.Truncated) (.Site.Params.readMore) }}
2020-06-06 21:05:21 +02:00
<div class="read-more">
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
2020-06-06 21:05:21 +02:00
</div>
2020-08-12 21:25:08 +02:00
{{ end }}
2020-06-06 21:05:21 +02:00
2021-07-09 18:00:52 +02:00
{{ partial "post-info.html" . }}
2020-06-06 21:05:21 +02:00
</article>