hugo-theme-minima/layouts/partials/item.html

17 lines
601 B
HTML
Raw Normal View History

2022-11-08 11:07:48 +01:00
<div>
<div class="flex flex-col-reverse sm:flex-row sm:justify-between">
2022-11-08 11:07:48 +01:00
{{ if .Page.Params.link }}
2022-11-08 16:10:57 +01:00
<a class="text-lg font-bold" href="{{ .Page.Params.link }}">{{ .Title }}</a>
2022-11-08 11:07:48 +01:00
{{ else }}
2022-11-08 16:10:57 +01:00
<a class="text-lg font-bold" href="{{ .RelPermalink }}">{{ .Title }}</a>
2022-11-08 11:07:48 +01:00
{{ end }}
{{ if .Site.Params.displayDate }}
2022-11-09 11:03:38 +01:00
<div class="text-sm font-bold whitespace-nowrap">{{ .Date | time.Format (T "timeformat") }}</div>
2022-11-08 11:07:48 +01:00
{{ end }}
</div>
{{ if .Site.Params.displayDescription }}
2022-11-08 16:10:57 +01:00
<p class="text-base mb-2">
2022-11-08 11:07:48 +01:00
{{ .Description | markdownify | safeHTML }}
</p>
{{ end }}
</div>