Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Tweak theme to detect and use front matter "description" field #105

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion layouts/partials/post-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Para

{{ if not .Site.Params.disableSummary }}
<div class="content post-summary p-summary">
{{ .Summary | safeHTML }}
{{ if isset .Params "description" }}
{{ .Description | safeHTML }}
{{ else }}
{{ .Summary | safeHTML }}&hellip;
{{ end }}
</div>
{{ end }}
{{ if and (.Truncated) (.Site.Params.readMore) }}
Expand Down