]> danix's work - danix.xyz-2.git/commit
Fix Hugo v0.160 compatibility: remove os.Getenv and fix template syntax
authorDanilo M. <redacted>
Wed, 15 Apr 2026 15:25:14 +0000 (17:25 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 15:25:14 +0000 (17:25 +0200)
commit7c8971eb481cea544987d4b9ddcb8064d9087766
tree1c343e46262013a223bd817aeef4c35c8c1d9996
parent231d29bf26820ca058dec57c06345943ca6dbbf2
Fix Hugo v0.160 compatibility: remove os.Getenv and fix template syntax

- Remove os.Getenv("THEME") call that violates security policy
- Use CSS variables and data attributes for theme-aware badge colors
- Update theme-toggle.js to update badge colors on theme switch
- Fix .LastMod → .Lastmod (correct API)
- Fix template syntax for date comparison in article-header.html

Co-Authored-By: Claude Haiku 4.5 <redacted>
content/en/articles/_index.md [new file with mode: 0644]
content/en/is/here/index.md [new file with mode: 0644]
content/it/articles/_index.md [new file with mode: 0644]
content/it/is/_index.md [new file with mode: 0644]
content/it/is/here/index.md [new file with mode: 0644]
themes/danix-xyz-hacker/assets/css/main.min.css
themes/danix-xyz-hacker/assets/js/theme-toggle.js
themes/danix-xyz-hacker/layouts/partials/article-header.html