add options to hide cover

This commit is contained in:
Aniket Teredesai 2023-06-08 15:09:22 +05:30
parent 9726b8d806
commit d62f8595ba
3 changed files with 7 additions and 0 deletions

View File

@ -41,7 +41,9 @@
</span>
{{ end }}
{{ if not (.Param "hideCoverInLists") }}
{{ partial "cover.html" . }}
{{ end }}
<div class="post-content">
{{ if .Params.showFullContent }}

View File

@ -31,7 +31,9 @@
</span>
{{ end }}
{{ if not (.Param "hideCoverInLists") }}
{{ partial "cover.html" . }}
{{ end }}
<div class="post-content">
{{ if .Params.showFullContent }}

View File

@ -27,7 +27,10 @@
{{ end }}
</span>
{{ end }}
{{ if not (.Param "hideCover") }}
{{ partial "cover.html" . }}
{{ end }}
{{ if (.Params.Toc | default .Site.Params.Toc) }}
<div class="table-of-contents">