binario/layouts/_default/summary.html
Vimux efb650245f
Improve featured image (#17)
WARNING: UPGRADE HUGO TO VERSION 0.54.0 OR LATER

* post_thumbnail -> post_featured
* Add url, alt, caption and credit params for featured
* Add previewOnly param
* Add styles for featured
* Add fallback for thumbnail.*
* Add "Featured Images" page
* Show caption & credit on single pages only
* Update README: add featured image guide
* Bump Hugo min version because `reflect.IsMap` [0.38 -> 0.54.0]
2019-09-24 10:50:06 -04:00

8 lines
No EOL
380 B
HTML

<article class="post card__box block">
{{- partial "post_featured.html" (dict "page" . "link" .RelPermalink) }}
<h1 class="post__title title-excerpt"><a class="post__title-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
{{- with .Summary }}
<div class="post__content">{{ . }}</div>
{{- end }}
{{- partial "post_meta.html" (dict "dot" . "class" "mt tar") }}
</article>