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

33 lines
1.1 KiB
HTML
Raw Normal View History

2016-02-19 23:35:42 -05:00
<article class="post">
{{ 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 }}
<div class="postmeta">Geschrieben am <time datetime='{{ .Date | time.Format ":date_medium" }}' pubdate="">{{ .Date | time.Format ":date_medium" }}</time>
2016-02-19 23:35:42 -05:00
{{ if (isset .Params "categories") }}
in
<span class="categories">
{{ range $i, $v := .Params.categories }}
<a class="category" href="/categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
{{ end }}
</span>
{{ end }}
</div>
<p>
{{ if (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>
2016-02-19 23:35:42 -05:00
{{ end }}
{{ end }}
</article>