diff --git a/README.md b/README.md index 6e8c1d3c..22631d1b 100644 --- a/README.md +++ b/README.md @@ -261,9 +261,6 @@ paige: format: ":date_long" # Hugo date format hide: false source: "published" # Displayed date; must be "published" or "modified" - description: - class: "lead text-center" - hide: false git: commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/" list: @@ -279,9 +276,6 @@ paige: date_header: class: "h5 text-center" hide: false - description: - class: "mb-0 text-center" - hide: false pages: hide: false reading_time: diff --git a/layouts/partials/paige/metadata.html b/layouts/partials/paige/metadata.html index 72e91b2d..e1bdfadd 100644 --- a/layouts/partials/paige/metadata.html +++ b/layouts/partials/paige/metadata.html @@ -15,8 +15,7 @@ {{ $date := cond ($page.Param "paige.date.hide" | not) (cond (eq ($page.Param "paige.date.source" | default "published") "published") $page.PublishDate $page.Lastmod) "" }} {{ $dateclass := $page.Param "paige.date.class" | default "paige-date text-center text-secondary" }} {{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }} -{{ $description := cond ($page.Param "paige.description.hide" | not) ($page.Description | markdownify) "" }} -{{ $descriptionclass := $page.Param "paige.description.class" | default "lead paige-description text-center" }} +{{ $description := $page.Description | markdownify }} {{ $nogap := "mb-0" }} {{ $readingtime := cond ($page.Param "paige.reading_time.hide" | not) $page.ReadingTime "" }} {{ $readingtimeclass := $page.Param "paige.reading_time.class" | default "paige-reading-time text-center text-secondary" }} @@ -37,7 +36,7 @@ {{ end }} {{ with $description }} -

{{ . }}

+

{{ . }}

{{ end }} {{ if or $categories $tags }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 4c7bbcac..2f5a10d0 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -30,8 +30,7 @@ {{ $date := cond ($page.Param "paige.list.date.hide" | not) .PublishDate "" }} {{ $dateclass := $page.Param "paige.list.date.class" | default "mb-0 paige-date text-center text-secondary" }} {{ $dateformat := $page.Param "paige.list.date.format" | default ":date_long" }} - {{ $description := cond ($page.Param "paige.list.description.hide" | not) (.Description | markdownify) "" }} - {{ $descriptionclass := $page.Param "paige.list.description.class" | default "mb-0 paige-description text-center" }} + {{ $description := .Description | markdownify }} {{ $draft := .Draft }} {{ $expired := and .ExpiryDate (lt .ExpiryDate now) }} {{ $flags := slice }} @@ -81,7 +80,7 @@ {{ end }} {{ with $description }} -

{{ . }}

+

{{ . }}

{{ end }} {{ with $summary }}