post-cover: add support for adding caption (#17)
* shown only on single page usage => in page-vars front-matter cover: image: '<image path/url>' alt: '<alt text>' caption: '<text>'
This commit is contained in:
parent
3068647f58
commit
35788daad1
2 changed files with 8 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
{{- else}}
|
||||
<img src="{{ .Permalink -}} {{- .Params.cover.image }}" alt="{{ .Params.cover.alt | plainify }}">
|
||||
{{- end}}
|
||||
<p>{{.Params.cover.caption}}</p>
|
||||
</figure>
|
||||
{{- end }}
|
||||
{{- if .Params.ShowToc }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue