diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss
index 3547a0f..319eba9 100644
--- a/assets/scss/custom.scss
+++ b/assets/scss/custom.scss
@@ -3,9 +3,15 @@
}
.lang-toggle-icon {
- margin-left: auto;
+ margin-left: 0;
svg {
width: 64px;
height: 24px;
}
+}
+
+.container {
+ .left-sidebar {
+ width: unset;
+ }
}
\ No newline at end of file
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
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 97d7597..6f2d43a 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -1,8 +1,13 @@
+{{- $IsList := .IsList -}}
+{{- $Page := .Page -}}
- {{ if .Params.categories }}
+ {{ if $Page.Params.categories }}
- {{ range (.GetTerms "tags") }}
-
+ {{ range ($Page.GetTerms "tags") }}
+ {{ $color := partial "helper/color-from-str" .LinkTitle }}
+ {{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
+ {{ $TextColor := default $color.TextColor .Params.style.color }}
+
{{ .LinkTitle }}
{{ end }}
@@ -12,49 +17,50 @@
- {{ with .Params.description }}
+ {{ with $Page.Params.description }}
{{ . }}
{{ end }}
- {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
- {{ $showDate := not .Date.IsZero }}
- {{ $showFooter := or $showDate $showReadingTime }}
- {{ if $showFooter }}
-
{{ end }}
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