summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials
AgeCommit message (Collapse)AuthorFilesLines
2026-04-15Fix language switcher to preserve current page pathDanilo M.2-4/+26
- Update language switcher to translate current page path instead of redirecting to root - When switching languages, preserve the page you're on (e.g., /articles/ → /it/articles/) - Works for both desktop header and mobile hamburger menu - Uses Hugo's string functions to manipulate URL paths Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Add language toggle to desktop headerDanilo M.1-1/+18
- Add language switcher (IT/EN) visible on desktop only - Language buttons show in header next to theme toggle - Current language highlighted with accent background - Mobile still uses hamburger menu for language toggle - Responsive design: hidden on mobile (md:hidden), visible on desktop Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Remove Alpine.js dependency from menu toggle, use vanilla JavaScriptDanilo M.1-3/+1
- Replace Alpine.js directives (@click, x-ref) with vanilla JS - Update hamburger-menu.html to use id selectors instead of x-ref - Rewrite menu.js to work without Alpine.js - Menu now opens/closes on click with proper event handling - Language toggle now accessible in hamburger menu Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix Hugo v0.160 compatibility: remove os.Getenv and fix template syntaxDanilo M.1-10/+13
- 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 <noreply@anthropic.com>
2026-04-15Fix shortcode location: move from shortcodes/ to layouts/shortcodes/Danilo M.1-4/+8
Hugo v0.156.0+ requires shortcodes to be in layouts/shortcodes/ directory. Moved all shortcodes (gravatar, image, gallery, contact-form) to correct location. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15feat: create Tech article type template (uses Chroma for syntax)Danilo M.1-0/+3
2026-04-15feat: create Quote article type templateDanilo M.1-0/+15
2026-04-15feat: create Link article type template with external buttonDanilo M.1-0/+17
2026-04-15feat: create Photo article type templateDanilo M.1-0/+18
2026-04-15feat: create Life article type templateDanilo M.1-0/+3
2026-04-15feat: add article header and sidebar partials supporting single article templateDanilo M.2-0/+75
2026-04-15feat: create article list item with type badges and pinned indicatorDanilo M.1-0/+40
2026-04-15feat: create language switcher with persistenceDanilo M.1-0/+1
2026-04-15fix: remove duplicate Alpine-based menu toggle, rely solely on menu.js for ↵Danilo M.1-34/+0
menu state management
2026-04-15fix: remove duplicate theme toggle logic from hamburger-menu.html, delegate ↵Danilo M.1-13/+2
to dedicated theme-toggle.js
2026-04-15feat: create footer with links and copyrightDanilo M.1-0/+38
2026-04-15feat: create hamburger overlay menu with language and theme togglesDanilo M.1-0/+112
2026-04-15feat: create responsive header with theme toggle and hamburgerDanilo M.1-0/+42