Fix summary template
This commit is contained in:
parent
064e32329b
commit
54ac42ad64
|
@ -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>
|
Reference in New Issue