jlelse
/
Indieroad
Archived
1
Fork 0

Fix summary template

This commit is contained in:
Jan-Lukas Else 2020-01-24 11:55:15 +01:00
parent 064e32329b
commit 54ac42ad64
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
{{ $showFull := and (or .Params.showFull (not .Truncated)) (not .Params.images) }}
<article class="list-item h-entry">
<div class="list-header">
{{ if .Title }}
{{ if .Params.externalURL }}
{{ if (and $showFull .Params.externalURL) }}
<a class="u-bookmark-of" href="{{ .Params.externalURL }}" target="_blank">
<h2 class="list-title p-name">{{ .Title }}</h2>
</a>
@ -17,7 +18,7 @@
{{ end }}
{{ end }}
</div>
{{ if (and (or .Params.showFull (not .Truncated)) (not .Params.images)) }}
{{ if $showFull }}
<div class="list-excerpt e-content">
{{ .Content }}
</div>
@ -29,7 +30,7 @@
{{ .Summary }}
</div>
<div class="list-footer">
<a class="u-url read-more" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
<a class="read-more u-url" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
</div>
{{ end }}
</article>