From 26c9497e1f906afaba917e5ebbc8e8c3693f6279 Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Sun, 15 May 2022 17:47:52 -0700 Subject: [PATCH 1/7] run summaries through markdownify --- layouts/partials/excerpt.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/excerpt.html b/layouts/partials/excerpt.html index 0e2c355b..246276a8 100644 --- a/layouts/partials/excerpt.html +++ b/layouts/partials/excerpt.html @@ -22,9 +22,9 @@

{{ $summary = .Params.abstract }} {{- end }} {{ if not ( strings.Contains $summary "

" ) }} -

{{ $summary }}

+

{{ $summary | markdownify }}

{{ else }} - {{ $summary }} + {{ $summary | markdownify }} {{ end }}
{{- $r := T "read_more" }} From d09449bf63f9109c287d8fcd13bdabc87f3ae234 Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 14:58:38 -0700 Subject: [PATCH 2/7] Adding a summary field to the example page bundle post Signed-off-by: Ivan Boothe --- exampleSite/content/post/bundle/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/exampleSite/content/post/bundle/index.md b/exampleSite/content/post/bundle/index.md index 69ba5a46..6b1ab1ad 100644 --- a/exampleSite/content/post/bundle/index.md +++ b/exampleSite/content/post/bundle/index.md @@ -1,6 +1,7 @@ --- title: 'Using Hugo page bundles' description: 'Page bundles are an optional way to organize content within Hugo.' +summary: "Page bundles are an optional way to organize page resources within Hugo. You can opt-in to using page bundles in Hugo Clarity with `usePageBundles` in your site configuration --- or in a page's front matter." # For the post in lists. date: '2022-03-24' aliases: - hugo-page-bundles From 5cbb7620d635267e109dc607f694e07129da45bd Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 15:27:44 -0700 Subject: [PATCH 3/7] add markdownify to titles in lists Signed-off-by: Ivan Boothe --- layouts/partials/excerpt.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/excerpt.html b/layouts/partials/excerpt.html index 246276a8..ba94336c 100644 --- a/layouts/partials/excerpt.html +++ b/layouts/partials/excerpt.html @@ -2,7 +2,7 @@

- {{ .Title }} + {{ .Title | markdownify }}

{{ partial "post-meta" . }}
From 03588c8655bf48d0bc026b11d2e689b0f16ab40a Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 15:27:54 -0700 Subject: [PATCH 4/7] adjust inline code style Signed-off-by: Ivan Boothe --- assets/sass/_syntax.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/sass/_syntax.sass b/assets/sass/_syntax.sass index 5055c594..7adb615d 100644 --- a/assets/sass/_syntax.sass +++ b/assets/sass/_syntax.sass @@ -7,7 +7,7 @@ opacity: 1 code - font-size: 15px + font-size: 85% font-weight: 400 overflow-y: hidden display: block From 6bc6e2a035ba86eb069fa5d9250f54713220ddd8 Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 15:34:13 -0700 Subject: [PATCH 5/7] add markdownify to page titles Signed-off-by: Ivan Boothe --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2935179f..e0299b29 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,7 +12,7 @@
{{- $t := .Title }} -

{{ $t }}

+

{{ $t | markdownify }}

{{- partial "post-meta" . }} {{- with .Params.featureImage -}}
From 0cb36ae29c7c7af8b669f877ceecf69a5df1e38c Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 15:36:13 -0700 Subject: [PATCH 6/7] add markdownify to sidebar items Signed-off-by: Ivan Boothe --- layouts/partials/sidebar.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index edf5a2a3..e849852c 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -50,7 +50,7 @@

{{ T "series_posts" }}

@@ -63,7 +63,7 @@

{{ T "featured_posts" }}

@@ -73,7 +73,7 @@

{{ T "recent_posts" }}

{{- $recent := default 8 $s.numberOfRecentPosts }} {{- range first $recent $posts }}
  • - {{ .Title }} + {{ .Title | markdownify }}
  • {{- end }} From 4ee43643d9998d80159d01b9c6d447ea2ee0dd2d Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Mon, 16 May 2022 15:42:44 -0700 Subject: [PATCH 7/7] add markdownify to footer items Signed-off-by: Ivan Boothe --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0e4b8886..d1bc9457 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,7 +8,7 @@