From 370772f69cfeef0eeb73b62dcdff828c97c35361 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 1 Jan 2026 03:49:52 +0530 Subject: [PATCH 1/9] content container as dedicated partial; reuse as decorator --- layouts/_default/section.html | 9 ++------- layouts/partials/_decorators/content-container.html | 8 ++++++++ layouts/partials/posts/post.html | 9 ++------- layouts/partials/section/section.html | 9 ++------- 4 files changed, 14 insertions(+), 21 deletions(-) create mode 100644 layouts/partials/_decorators/content-container.html diff --git a/layouts/_default/section.html b/layouts/_default/section.html index dac1d49d..1cc97c9b 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,11 +1,6 @@ {{ define "main" }}
-
- {{ partial "breadcrumbs.html" . }} -

{{ .Title }}

- {{ if .Params.Subtitle }} -
{{ .Params.Subtitle }}
- {{ end }} + {{ with partial "_decorators/content-container.html" . }} {{ if .Content }} {{ .Content }} {{ end }} @@ -20,7 +15,7 @@
{{ .Params.Subtitle }}
{{ end }} - + {{ end }} {{ if .Content }} {{ partial "shortcuts.html" . }} {{ end }} diff --git a/layouts/partials/_decorators/content-container.html b/layouts/partials/_decorators/content-container.html new file mode 100644 index 00000000..17ed620b --- /dev/null +++ b/layouts/partials/_decorators/content-container.html @@ -0,0 +1,8 @@ +
+ {{ partial "breadcrumbs.html" . }} +

{{ .Title }}

+ {{ if .Params.Subtitle }} +
{{ .Params.Subtitle }}
+ {{ end }} + {{- inner . -}} +
diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html index 4c14b1d2..4b550d44 100644 --- a/layouts/partials/posts/post.html +++ b/layouts/partials/posts/post.html @@ -1,11 +1,6 @@ {{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
-
- {{ partial "breadcrumbs.html" . }} -

{{ .Title }}

- {{ if .Params.Subtitle }} -
{{ .Params.Subtitle }}
- {{ end }} + {{ with partial "_decorators/content-container.html" . }}
{{ with $featuredImage }} @@ -18,6 +13,6 @@
{{ .Params.Subtitle }}
{{ .Content }} {{ partial "posts/comments.html" .}}
-
+ {{ end }} {{ partial "shortcuts.html" . }}
diff --git a/layouts/partials/section/section.html b/layouts/partials/section/section.html index b86489c3..366367f9 100644 --- a/layouts/partials/section/section.html +++ b/layouts/partials/section/section.html @@ -1,10 +1,5 @@
-
- {{ partial "breadcrumbs.html" . }} -

{{ .Title }}

- {{ if .Params.Subtitle }} -
{{ .Params.Subtitle }}
- {{ end }} +{{ with partial "_decorators/content-container.html" . }} {{ if .Content }} {{ .Content }} {{ else }} @@ -25,7 +20,7 @@
{{ .Params.Subtitle }}
{{ end }} {{ end }} - +{{ end }}
On this page
From fd307395291b4406589961ae0cb595f9b04fbfb1 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 1 Jan 2026 03:54:12 +0530 Subject: [PATCH 2/9] add article as decorator, for lists with and without summaries --- layouts/partials/_decorators/article.html | 6 ++++++ layouts/partials/posts/list-with-summary.html | 11 ++++------- layouts/partials/posts/list-without-summary.html | 11 +++++------ 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 layouts/partials/_decorators/article.html diff --git a/layouts/partials/_decorators/article.html b/layouts/partials/_decorators/article.html new file mode 100644 index 00000000..b61de093 --- /dev/null +++ b/layouts/partials/_decorators/article.html @@ -0,0 +1,6 @@ + diff --git a/layouts/partials/posts/list-with-summary.html b/layouts/partials/posts/list-with-summary.html index f8dea01c..8a6af195 100644 --- a/layouts/partials/posts/list-with-summary.html +++ b/layouts/partials/posts/list-with-summary.html @@ -2,12 +2,9 @@
{{ range $posts }} -
-
{{ .Title }}
-
- {{ partial "posts/meta.html" . }} - {{ partial "posts/summary.html" . }} -
-
+ {{ with partial "_decorators/post.html" . }} + {{ partial "posts/meta.html" . }} + {{ partial "posts/summary.html" . }} + {{ end }} {{ end }}
diff --git a/layouts/partials/posts/list-without-summary.html b/layouts/partials/posts/list-without-summary.html index 480f21f8..a6111ad1 100644 --- a/layouts/partials/posts/list-without-summary.html +++ b/layouts/partials/posts/list-without-summary.html @@ -2,11 +2,10 @@
{{ range $posts }} - + {{ with partial "_decorators/post.html" . }} + + {{ end }} {{ end }}
From d0eee5f631ba2b5dcc0ba3604c9bc442d7d5a5cd Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 1 Jan 2026 04:33:55 +0530 Subject: [PATCH 3/9] Fix path to article partial decorator --- layouts/partials/posts/list-with-summary.html | 2 +- layouts/partials/posts/list-without-summary.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/posts/list-with-summary.html b/layouts/partials/posts/list-with-summary.html index 8a6af195..b0c71c10 100644 --- a/layouts/partials/posts/list-with-summary.html +++ b/layouts/partials/posts/list-with-summary.html @@ -2,7 +2,7 @@
{{ range $posts }} - {{ with partial "_decorators/post.html" . }} + {{ with partial "_decorators/article.html" . }} {{ partial "posts/meta.html" . }} {{ partial "posts/summary.html" . }} {{ end }} diff --git a/layouts/partials/posts/list-without-summary.html b/layouts/partials/posts/list-without-summary.html index a6111ad1..204b518a 100644 --- a/layouts/partials/posts/list-without-summary.html +++ b/layouts/partials/posts/list-without-summary.html @@ -2,7 +2,7 @@
{{ range $posts }} - {{ with partial "_decorators/post.html" . }} + {{ with partial "_decorators/article.html" . }} From e0389d716f56fc1d4fac7be60efe2b2b5624fa14 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 1 Jan 2026 04:41:29 +0530 Subject: [PATCH 4/9] Bump Hugo version to v0.154.0 --- doc/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/netlify.toml b/doc/netlify.toml index e781badc..ad499012 100644 --- a/doc/netlify.toml +++ b/doc/netlify.toml @@ -1,6 +1,6 @@ [build.environment] PYTHON_VERSION = "3.13" - HUGO_VERSION = "0.152.2" + HUGO_VERSION = "0.154.0" DART_SASS_VERSION = "1.93.2" DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/" From 3d75b626facbd709139b474303a6d304b06f530e Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:18:41 +0530 Subject: [PATCH 5/9] Bump to Hugo v0.154.5 --- doc/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/netlify.toml b/doc/netlify.toml index ad499012..43514390 100644 --- a/doc/netlify.toml +++ b/doc/netlify.toml @@ -1,6 +1,6 @@ [build.environment] PYTHON_VERSION = "3.13" - HUGO_VERSION = "0.154.0" + HUGO_VERSION = "0.154.5" DART_SASS_VERSION = "1.93.2" DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/" From fe2fba3acfe0a26f12d3487d2db275fe56ff2eee Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:31:30 +0530 Subject: [PATCH 6/9] Make `featuredImage` accessible inside `inner`'s scope --- layouts/partials/posts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html index 592aee41..a802a680 100644 --- a/layouts/partials/posts/post.html +++ b/layouts/partials/posts/post.html @@ -1,9 +1,9 @@ -{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
{{ with partial "_decorators/content-container.html" . }} + {{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
{{ with $featuredImage }} {{ if .Params.showOnTop }} From 9e46f11d91b16e55cae2a306aea7f83d4ff4f5d9 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:32:12 +0530 Subject: [PATCH 7/9] Some more partials --- layouts/_default/single.html | 9 ++------- layouts/partials/posts/list.html | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 220cbcdd..68fbb200 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,13 +1,8 @@ {{ define "main" }}
-
- {{ partial "breadcrumbs.html" . }} -

{{ .Title }}

- {{ if .Params.Subtitle }} -
{{ .Params.Subtitle }}
- {{ end }} + {{ with partial "_decorators/content-container.html" . }} {{ .Content }} -
+ {{ end }} {{ partial "shortcuts.html" . }}
{{ end }} diff --git a/layouts/partials/posts/list.html b/layouts/partials/posts/list.html index d2f8fb49..9a78dc70 100644 --- a/layouts/partials/posts/list.html +++ b/layouts/partials/posts/list.html @@ -28,18 +28,13 @@

{{ i18n "tags" }}

{{ end }}
-
- {{ partial "breadcrumbs.html" . }} -

{{ .Title }}

- {{ if .Params.Subtitle }} -
{{ .Params.Subtitle }}
- {{ end }} + {{ with partial "_decorators/content-container.html" . }} {{ if .Content }} {{ .Content }} {{ end }} {{ $posts := .RegularPagesRecursive.ByPublishDate.Reverse }} {{ partial "posts/list-without-summary.html" $posts }} -
+ {{ end }} {{ if .Content }} {{ partial "shortcuts.html" . }} {{ end }} From f545c3c1723338828e15cf996a772feea82c2954 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:34:29 +0530 Subject: [PATCH 8/9] Bump to Hugo 0.157.0 --- doc/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/netlify.toml b/doc/netlify.toml index 43514390..4c3799e2 100644 --- a/doc/netlify.toml +++ b/doc/netlify.toml @@ -1,6 +1,6 @@ [build.environment] PYTHON_VERSION = "3.13" - HUGO_VERSION = "0.154.5" + HUGO_VERSION = "0.157.0" DART_SASS_VERSION = "1.93.2" DART_SASS_URL = "https://github.com/sass/dart-sass/releases/download/" From a33e7e4f1b5d320309d9c68649dcd9e6816a469b Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:48:02 +0530 Subject: [PATCH 9/9] Exercise CI