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">
|
<article class="list-item h-entry">
|
||||||
<div class="list-header">
|
<div class="list-header">
|
||||||
{{ if .Title }}
|
{{ if .Title }}
|
||||||
{{ if .Params.externalURL }}
|
{{ if (and $showFull .Params.externalURL) }}
|
||||||
<a class="u-bookmark-of" href="{{ .Params.externalURL }}" target="_blank">
|
<a class="u-bookmark-of" href="{{ .Params.externalURL }}" target="_blank">
|
||||||
<h2 class="list-title p-name">{{ .Title }}</h2>
|
<h2 class="list-title p-name">{{ .Title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if (and (or .Params.showFull (not .Truncated)) (not .Params.images)) }}
|
{{ if $showFull }}
|
||||||
<div class="list-excerpt e-content">
|
<div class="list-excerpt e-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
</div>
|
</div>
|
||||||
<div class="list-footer">
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
Reference in New Issue