Website/themes/mainroad/layouts/_default/summary.html
2018-07-11 20:45:17 +02:00

27 lines
No EOL
856 B
HTML

<article class="list__item post">
{{- if .Params.thumbnail }}
<figure class="list__thumbnail">
<a href="{{ .Permalink }}">
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}" />
</a>
</figure>
{{- end }}
<div class="list__content clearfix">
<header class="list__header">
<h3 class="list__title post__title ">
<a href="{{ .RelPermalink }}" rel="bookmark">{{ .Title }}</a>
</h3>
{{- if or (not .Date.IsZero) .Params.categories }}<div class="list__meta meta">{{ partial "post_meta.html" . }}</div>{{- end }}
</header>
<div class="list__excerpt post__content">
{{ .Summary }}
</div>
{{- if .Site.Params.readmore }}
{{- if .Truncated }}
<div class="list__footer">
<a class="list__footer-readmore btn" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
</div>
{{- end }}
{{- end }}
</div>
</article>