hugo-internet-weblog/layouts/partials/preview_micropost.html

38 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2016-02-19 23:35:42 -05:00
<article class="micropost">
{{ if isset .Site.Params "summarizemicroposts" | and ( eq .Site.Params.summarizemicroposts true ) }}
{{ if (not (isset .Params "externalurl")) }}
<h2><a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ else }}
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}"></a></h2>
{{ end }}
2025-02-11 13:22:29 +01:00
<div class="postmeta">Geschrieben am <time datetime='{{ .Date | time.Format ":date_medium" }}' pubdate="">{{ .Date | time.Format ":date_medium" }}</time>
{{ if (isset .Params "categories") }}
in
<span class="categories">
{{ range $i, $v := .Params.categories }}
<a class="category" href="{{ absLangURL "categories" }}/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
{{ end }}
</span>
{{ end }}
</div>
<p>
{{ if or (not (isset .Params "externalurl")) }}
{{ .Summary }}
{{ else }}
{{ .Content }}
{{ end }}
</p>
{{ if .Truncated }}
{{ if (not (isset .Params "externalurl")) }}
2025-01-28 11:14:33 +01:00
<a class="continue" rel="full-article" href="{{ .Permalink }}">Weiterlesen »</a>
{{ end }}
{{ end }}
{{ else }}
{{ .Content }}
2025-01-28 11:14:33 +01:00
<a href='{{ .Permalink }}'><aside class="dates">→ {{ .Date.Format "02.01.2006 15:04" }}</aside></a>
{{ end }}
2016-02-19 23:35:42 -05:00
</article>