From 04e131f93a5c29f2f5f15e3468b5d7b81db49941 Mon Sep 17 00:00:00 2001 From: Xin Date: Sun, 10 Sep 2023 09:54:30 -0400 Subject: [PATCH] chore: normalize headings (#42) * chore: minor update to card component * chore: normalize headings of blog and single page --- layouts/_default/single.html | 1 + layouts/blog/list.html | 3 ++- layouts/shortcodes/card.html | 13 +++++++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 20bf9d0..4e08bb8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,6 +4,7 @@ {{ partial "toc.html" . }}
+

{{ .Title }}

diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 797f635..1008901 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -3,7 +3,8 @@ {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
-

{{ .Title }}

+
+

{{ .Title }}

{{ .Content }}
{{ range .Pages.ByDate }}
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 3d9af16..263c635 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -12,23 +12,24 @@ {{- $external := strings.HasPrefix $link "http" -}} + {{- with $image -}} - {{ $title }} + {{ $title }} {{- end -}} - {{ $padding := "p-4"}} + {{- $padding := "p-4" -}} {{- with $subtitle -}} - {{ $padding = "pt-4 px-4"}} + {{- $padding = "pt-4 px-4" -}} {{- end -}} + {{- with $icon }}{{ partial "utils/icon.html" (dict "name" $icon) -}}{{ end -}} {{- $title -}}