jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/_default/summary.html

36 lines
1.0 KiB
HTML
Raw Normal View History

2020-01-24 10:55:15 +00:00
{{ $showFull := and (or .Params.showFull (not .Truncated)) (not .Params.images) }}
2019-09-03 15:50:00 +00:00
<article class="list-item h-entry">
2019-09-10 14:33:10 +00:00
<div class="list-header">
2019-11-19 08:22:33 +00:00
{{ if .Title }}
2020-01-24 10:55:15 +00:00
{{ if (and $showFull .Params.externalURL) }}
2020-05-02 06:03:49 +00:00
<a class="u-bookmark-of" href="{{ .Params.externalURL }}" target="_blank" rel="noopener">
<h2 class="list-title p-name">{{ .Title }}</h2>
</a>
{{ else }}
2020-01-01 19:26:46 +00:00
<a class="u-url" href="{{ .RelPermalink }}">
2019-09-03 15:50:00 +00:00
<h2 class="list-title p-name">{{ .Title }}</h2>
2019-09-10 14:33:10 +00:00
</a>
2019-11-19 08:22:33 +00:00
{{ end }}
{{ end }}
2019-12-25 13:35:57 +00:00
{{ if not .Params.nometa }}
2020-02-17 07:08:39 +00:00
{{ with partialCached "post_meta" . .RelPermalink }}
2019-09-10 14:33:10 +00:00
<div class="list-meta">{{ . }}</div>
2019-11-19 08:22:33 +00:00
{{ end }}
2019-12-25 13:35:57 +00:00
{{ end }}
2019-09-10 14:33:10 +00:00
</div>
2020-01-24 10:55:15 +00:00
{{ if $showFull }}
<div class="list-excerpt e-content">
{{ .Content }}
</div>
<div class="list-footer">
<a class="read-more u-url" href="{{ .RelPermalink }}">{{ T "permalink" }}</a>
</div>
{{ else }}
2019-09-10 14:33:10 +00:00
<div class="list-excerpt p-summary">
{{ .Summary }}
</div>
<div class="list-footer">
2020-01-24 10:55:15 +00:00
<a class="read-more u-url" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
2019-09-10 14:33:10 +00:00
</div>
{{ end }}
2019-09-03 15:50:00 +00:00
</article>