summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker
AgeCommit message (Collapse)AuthorFilesLines
2026-04-15Implement taxonomy system for tags and categoriesDanilo M.3-0/+84
- Enable tags and categories taxonomies in hugo.toml - Create taxonomy/list.html for archive pages (/tags, /categories) - Create taxonomy/term.html for individual term pages (/tags/example) - Add quote shortcode for quote-type articles - Both templates reuse article-list-item partial for consistent styling Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix theme toggle icon to always sync with actual page themeDanilo M.2-25/+25
Replace Alpine.js conditional rendering with plain JavaScript that: - Reads the actual theme class from the html element on page load - Updates icon visibility based on the real DOM state, not internal state - Handles navigation correctly since it checks the current class every time This fixes the issue where navigating between pages caused the icon to become out of sync with the actual theme being displayed. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix theme toggle icon state sync on page navigationDanilo M.1-2/+9
The Alpine.js state was reading from localStorage instead of the actual class on the html element, causing the icon to be out of sync with the actual theme. Now we initialize the Alpine state by checking the current html classList, which is set by the page-load script in baseof.html. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix design system compliance: CSS variables, accessibility, and theme systemDanilo M.13-66/+324
Core CSS improvements: - Add --surface-rgb, --type-* (tech, life, quote, link, photo) custom properties - Add --type-* semantic color classes for article badges - Convert article badges from inline styles to CSS variable system - Add prefers-color-scheme light fallback for no-JS users - Add prefers-reduced-motion support to respect user accessibility settings - Replace *:focus with *:focus-visible (keyboard-only outlines) - Add clamp() fluid typography for hero-title and section-title - Refactor container rules to mobile-first with 1060px breakpoint Theme & Icon fixes: - Fix theme toggle icon display with Alpine.js (was broken with Tailwind dark: classes) - Add aria-hidden="true" to icon elements - Update header with proper ARIA attributes on menu toggle Accessibility enhancements: - Add skip-to-main-content link in baseof.html - Update hamburger menu with aria-expanded, aria-controls, aria-hidden - Implement focus trap (Tab loops) within mobile menu - Return focus to trigger button on menu close - Add menu open/close state management with proper ARIA Semantic HTML: - Wrap article pages in <article> element (articles/single.html, _default/single.html) - Fix quote article to use --type-quote border color instead of generic accent Image optimization: - Add loading="lazy" to profile image in index.html - Add loading="lazy" to featured image in photo.html Template fixes: - Remove broken os.Getenv "THEME" runtime check from article-list-item.html - Replace inline color styles with semantic .type-* classes - Add 1060px lg: breakpoint to tailwind.config.js i18n updates: - Add skipToContent translations (en, it) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Complete multilingual theme implementation with language-aware menusDanilo M.10-61/+168
- Refactor hugo.toml to define menus separately for each language using pageRef - Simplify header and hamburger-menu templates to use Hugo-native language handling - Update content structure with proper language prefix organization - Remove JavaScript language-switcher in favor of Hugo's native approach - Add new layout templates for /is/ section with list view - Update HANDOFF.md with current implementation status - Rebuild minified CSS with updated template changes Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix gravatar shortcode and about page ref linksDanilo M.1-1/+1
- Fix gravatar.html: replace trim() with strings.TrimSpace() - Fix about pages: replace {{< ref "legal" >}} with relative path ../legal - Both English and Italian about pages now build without errors Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Fix contact form shortcode: rename from contact-form.html to contact.htmlDanilo M.1-2/+0
Problem: Hugo v0.160 doesn't find shortcode as 'contact_form' when filename is contact-form.html Solution: Rename to contact.html so shortcode is {{< contact >}} - Rename shortcodes/contact-form.html → contact.html - Update contact pages to use {{< contact >}} shortcode - Remove unused dict initialization line from contact shortcode - Contact form now works on both English and Italian contact pages Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Extract contact form JavaScript to separate file and remove shortcode from ↵Danilo M.4-77/+49
contact pages - Move contact form Alpine.js logic to assets/js/contact-form.js - Simplify contact-form.html shortcode by removing inline script - Load contact-form.js in baseof.html after Alpine.js - Temporarily remove {{< contact_form >}} shortcode from contact pages (shortcode parsing issue to investigate later) - Contact pages now display with placeholder text Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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.2-22/+21
- 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.3-10/+119
- 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.5-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-15Set up Tailwind CSS build pipeline and bilingual homepage contentDanilo M.4-4/+1914
- Install and configure Tailwind CSS with tailwind.config.js - Create npm scripts for building Tailwind (build/watch) - Add .gitignore to exclude node_modules and build artifacts - Create bilingual homepage content (content/it/_index.md, content/en/_index.md) - Update baseof.html to use compiled main.min.css - Fix .ByDate deprecation in list.html template (use sort function) - Fix main.css pre element to support rgba with opacity - Homepage now displays with full dark/light theme styling Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15feat: create contact-form shortcode with Alpine.js AJAXDanilo M.1-0/+114
2026-04-15feat: create gallery shortcode with responsive columnsDanilo M.1-0/+12
2026-04-15feat: create image shortcode with lazy-loading and captionsDanilo M.1-0/+22
2026-04-15feat: create gravatar shortcode with MD5 hashingDanilo M.1-0/+17
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: create article type dispatcher templateDanilo M.1-0/+36
2026-04-15feat: add article header and sidebar partials supporting single article templateDanilo M.2-0/+75
2026-04-15feat: create single article template with sidebarDanilo M.1-0/+36
2026-04-15feat: create article list item with type badges and pinned indicatorDanilo M.1-0/+40
2026-04-15feat: create articles list with pinned post supportDanilo M.1-0/+31
2026-04-15feat: create landing page with hero and CTAsDanilo M.1-0/+45
2026-04-15feat: create English i18n stringsDanilo M.1-0/+51
2026-04-15fix: remove duplicate keys from Italian i18n, use contactMe for social sectionDanilo M.1-2/+1
2026-04-15feat: add missing email key in Forms sectionDanilo M.1-0/+2
2026-04-15feat: create Italian i18n stringsDanilo M.1-0/+50
2026-04-15feat: create language switcher with persistenceDanilo M.3-0/+25
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-15feat: create hamburger menu toggle scriptDanilo M.1-0/+51
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 theme toggle with localStorage persistenceDanilo M.1-0/+30
2026-04-15fix: add light theme color overrides and remove duplicate inline code ↵Danilo M.1-16/+41
styling from chroma-custom.css
2026-04-15feat: create syntax highlighting theme with dark/light supportDanilo M.1-0/+132
2026-04-15fix: remove redundant focus ring offset rule in main.cssDanilo M.1-4/+0
2026-04-15feat: create Tailwind CSS with theme variables and base stylesDanilo M.1-0/+159
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
2026-04-15feat: create base template with theme toggle, fonts, and Alpine.jsDanilo M.1-0/+75
2026-04-15feat: add theme metadataDanilo M.1-0/+37