binario/layouts/_default/single.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

22 lines
No EOL
703 B
HTML

{{ define "main" }}
<main class="main">
<div class="single block">
<article class="post">
{{- partial "post_featured.html" (dict "page" . "IsSingle" true) }}
{{- partial "post_meta.html" (dict "dot" . "class" "mb") }}
<h1 class="post__title">{{ .Title }}</h1>
{{- partial "post_toc.html" . }}
<div class="post__content">{{ .Content }}</div>
{{ if or (.Param "share") (isset $.Params "tags") }}
<footer class="post__footer">
{{ partial "post_tags.html" . }}
{{ partial "post_share.html" . }}
</footer>
{{ end }}
</article>
</div>
</main>
{{ partial "authorbox.html" . }}
{{ partial "related.html" . }}
{{ partial "comments.html" . }}
{{ end }}