contentthumbnail(bool) now supported in feed posts
This commit is contained in:
parent
730ee7ec7f
commit
c4e1084132
@ -3,5 +3,6 @@ title: '{{ replace .File.ContentBaseName "-" " " | title }}'
|
|||||||
description: null
|
description: null
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
thumbnail: null
|
thumbnail: null
|
||||||
|
ContentThumbnail: true
|
||||||
article: false
|
article: false
|
||||||
---
|
---
|
||||||
|
@ -7,9 +7,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.Thumbnail }}
|
{{ if .Params.Thumbnail }}
|
||||||
|
{{ if .Params.ContentThumbnail }}
|
||||||
<a href="{{ .Params.Thumbnail }}">
|
<a href="{{ .Params.Thumbnail }}">
|
||||||
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
<div class="container">{{ .Content }}</div>
|
<div class="container">{{ .Content }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user