contentthumbnail(bool) now supported in feed posts

This commit is contained in:
shockrah 2024-02-04 16:34:03 -08:00
parent 730ee7ec7f
commit c4e1084132
2 changed files with 6 additions and 3 deletions

View File

@ -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
--- ---

View File

@ -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 }}