summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-21 23:12:53 +0200
committerDanilo M. <danix@danix.xyz>2026-04-21 23:12:53 +0200
commit3d8c3aa5a6ffc306758e3d7347f96d7bfbe9dc76 (patch)
tree33c07d19edca385db1c76bdc0901f1b9814440d9 /themes/danix-xyz-hacker/layouts/partials
parent1780ef52eebfb02112013f99a7402b4d9d0c259b (diff)
downloaddanixxyz-3d8c3aa5a6ffc306758e3d7347f96d7bfbe9dc76.tar.gz
danixxyz-3d8c3aa5a6ffc306758e3d7347f96d7bfbe9dc76.zip
build: regenerate CSS and fix tag cloud color rendering
- Rebuilt CSS with main.min.css using Tailwind - Fixed tag-cloud.html template: replaced cond function with if/else to properly render CSS color variables - All tag cloud instances now render with correct inline styles: var(--accent) and var(--text-dim) - HTML output verified across homepage, article sidebars, and 404 page - Language-aware tag URLs confirmed: /tags/* for English, /it/tags/* for Italian
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/tag-cloud.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/tag-cloud.html b/themes/danix-xyz-hacker/layouts/partials/tag-cloud.html
index 0db75f0..5198ca7 100644
--- a/themes/danix-xyz-hacker/layouts/partials/tag-cloud.html
+++ b/themes/danix-xyz-hacker/layouts/partials/tag-cloud.html
@@ -54,11 +54,14 @@
{{- $ratio := (div (float $count) (float $maxCount)) -}}
{{- $size := (add 0.6 (mul $ratio 1.2)) -}}
{{- $opacity := (add 0.7 (mul $ratio 0.3)) -}}
- {{- $color := cond (ge $ratio 0.5) "var(--accent)" "var(--text-dim)" -}}
<a
href="{{ .Page.RelPermalink }}"
class="tag-cloud-link"
- style="font-size: {{ $size }}rem; color: {{ $color }}; opacity: {{ $opacity }};"
+ {{- if ge $ratio 0.5 }}
+ style="font-size: {{ $size }}rem; color: var(--accent); opacity: {{ $opacity }};"
+ {{- else }}
+ style="font-size: {{ $size }}rem; color: var(--text-dim); opacity: {{ $opacity }};"
+ {{- end }}
aria-label="{{ .Name }}{{- if $showCount }} ({{ i18n "postCount" $count }}){{- end -}}"
>
{{- .Name -}}