Zebra/themes/casper/layouts/partials/suggestions.html

19 lines
806 B
HTML
Raw Permalink Normal View History

2020-08-05 17:22:00 +02:00
<aside class="read-next">
{{ with .NextInSection }}
<a class="read-next-story" style="{{ if .Params.image }}background-image: url({{ .Params.image | relURL }}){{ else }}no-cover{{ end }}" href="{{ .RelPermalink }}">
<section class="post">
<h2>{{.Title}}</h2>
<p>{{ delimit (first 19 (split .Summary " ")) " " }}…</p>
</section>
</a>
{{ end }}
{{ with .PrevInSection }}
<a class="read-next-story prev" style="{{ if .Params.image }}background-image: url({{ .Params.image | relURL}}){{ else }}no-cover{{ end }}" href="{{ .RelPermalink }}">
<section class="post">
<h2>{{.Title}}</h2>
<p>{{ delimit (first 19 (split .Summary " ")) " " }}…</p>
</section>
</a>
{{ end }}
</aside>