From 44bf1617655d09f81082022b5a0cab2594418450 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Mon, 30 Mar 2026 09:03:58 +0000 Subject: [PATCH 01/22] update: theme/stack version --- themes/stack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/stack b/themes/stack index 9e6b7b2..8e36874 160000 --- a/themes/stack +++ b/themes/stack @@ -1 +1 @@ -Subproject commit 9e6b7b22a9d47478a72287bcdc29e885dcd8f359 +Subproject commit 8e3687431f40f3367635f067b3be89bd3f95d36e -- 2.49.1 From e170345fdd5e4401b002df059b034fe555774bd2 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Mon, 30 Mar 2026 09:29:42 +0000 Subject: [PATCH 02/22] fix: revert to git clone instead of checkout --- .gitea/workflows/test.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index c2b25c9..c9c4ff1 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -23,10 +23,7 @@ jobs: docker_folder_changed: ${{ steps.docker_folder.outputs.changed }} steps: - name: Checkout Repository - uses: actions/checkout@v4 - with: - ref: ${{ gitea.ref_name }} - token: ${{ secrets.REPO_TOKEN }} + run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . - name: Check Latest Hugo Version id: get_latest @@ -81,10 +78,7 @@ jobs: shell: sh steps: - name: Checkout Repository - uses: actions/checkout@v4 - with: - ref: ${{ gitea.ref_name }} - token: ${{ secrets.REPO_TOKEN }} + run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . - name: Build Docker Image run: | -- 2.49.1 From 7d7b1aa62726e6d304c1f0ff36e9174b0f0c51f5 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 1 Apr 2026 06:25:37 +0000 Subject: [PATCH 03/22] fix: patch remaining .Site.Data references in Stack theme --- themes/stack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/stack b/themes/stack index 8e36874..70a1954 160000 --- a/themes/stack +++ b/themes/stack @@ -1 +1 @@ -Subproject commit 8e3687431f40f3367635f067b3be89bd3f95d36e +Subproject commit 70a1954b7ea647cde9eb1f9cdd505f014f220283 -- 2.49.1 From 7baf7162b75e7195a45e38f1dccae05a08c2d31e Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 1 Apr 2026 06:40:30 +0000 Subject: [PATCH 04/22] fix: revert local submodule commit --- themes/stack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/stack b/themes/stack index 70a1954..8e36874 160000 --- a/themes/stack +++ b/themes/stack @@ -1 +1 @@ -Subproject commit 70a1954b7ea647cde9eb1f9cdd505f014f220283 +Subproject commit 8e3687431f40f3367635f067b3be89bd3f95d36e -- 2.49.1 From f19239837c3e83e7c82024271f6cd672bcf34413 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 1 Apr 2026 06:42:49 +0000 Subject: [PATCH 05/22] fix: patch .Site.Data references in Stack theme at build time --- docker/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index f5478c7..2f4128d 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -21,6 +21,9 @@ rm -rf "$CLONE_DIR" echo "- Cloning $REPO_URL (branch: $BRANCH)..." git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" +# Patch .Site.Data references not yet fixed in Stack theme +sed -i 's/\.Site\.Data/hugo.Data/g' "$CLONE_DIR/themes/stack/layouts/_partials/article/components/photoswipe.html" + # Generate static files with hugo echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..." hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL="https://${URL}" ${DRAFTS} --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings -- 2.49.1 From 7c058e89026d35a2b4139cdda486abc49a7b89a3 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Thu, 2 Apr 2026 18:44:42 +0000 Subject: [PATCH 06/22] test: use details.html for theme --- .../partials/article/components/details.html | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 97d7597..e9b765a 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -1,4 +1,80 @@ +{{- $IsList := .IsList -}} +{{- $Page := .Page -}}
+ {{ if $Page.Params.categories }} + + {{ end }} + +
+

+ + {{- $Page.Title -}} + +

+ + {{ with $Page.Params.description }} +

+ {{ . }} +

+ {{ end }} +
+ + {{ $showReadingTime := $Page.Params.readingTime | default ($Page.Site.Params.article.readingTime) }} + {{ $showDate := not $Page.Date.IsZero }} + {{ $showTime := or $showDate $showReadingTime }} + {{ $showTranslations := $Page.IsTranslated }} + {{ $showTags := and $Page.Site.Params.Article.List.ShowTags ($Page.GetTerms "tags") $IsList }} + + {{ if or $showTime $showTranslations $showTags }} +
+ {{ if $showTime }} +
+ {{ if $showDate }} + {{ partial "helper/icon" "date" }} + + {{ end }} + + {{ if $showReadingTime }} + {{ partial "helper/icon" "clock" }} + + {{ end }} +
+ {{ end }} + + {{ if $showTranslations }} +
+ {{ partial "helper/icon" "language" }} + {{ range $Page.Translations }} + {{ .Language.LanguageName }} + {{ end }} +
+ {{ end }} + + {{ if $showTags }} + + {{ end }} +
+ {{ end }} +
+ -- 2.49.1 From f10bce1c0a361b6c1fd05fd141d97f255e15349c Mon Sep 17 00:00:00 2001 From: Vezpi Date: Thu, 2 Apr 2026 19:00:38 +0000 Subject: [PATCH 07/22] refactor: details.html --- .../partials/article/components/details.html | 110 +++--------------- 1 file changed, 18 insertions(+), 92 deletions(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index e9b765a..a4b7f05 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -3,11 +3,8 @@
{{ if $Page.Params.categories }}
-- 2.49.1 From a2cb29f2f31d4d152b9ffc0628b747c7741632bd Mon Sep 17 00:00:00 2001 From: Vezpi Date: Thu, 2 Apr 2026 19:02:08 +0000 Subject: [PATCH 08/22] fix: typo --- layouts/partials/article/components/details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index a4b7f05..b4f6e2a 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -4,7 +4,7 @@ {{ if $Page.Params.categories }}