Merge pull request #297 from alberto-lanfranco/master

fixed post-content logic in index.html and list.html
This commit is contained in:
Radek Kozieł 2022-01-22 09:17:10 +01:00 committed by GitHub
commit 6ad2d19be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 10 deletions

View File

@ -44,13 +44,11 @@
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ .Content }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ .Description | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary }}
{{ end }}
{{ .Summary | markdownify }}
{{ end }}
</div>

View File

@ -34,13 +34,11 @@
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ .Content }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ .Description | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary }}
{{ end }}
{{ .Summary | markdownify }}
{{ end }}
</div>