summaryrefslogtreecommitdiffstats
path: root/hugo.toml
AgeCommit message (Collapse)AuthorFilesLines
2026-04-22Removed repo from menu and i18nrelease_22042026-1904Danilo M.1-10/+10
2026-04-20updated i18n files in theme to reflect new variables added. Updated TODO and ↵Danilo M.1-7/+7
hugo.toml.
2026-04-20feat: add search index JSON generation templateDanilo M.1-0/+14
Generates /search-index.json at build time containing title, url, date, and summary for all articles. Template uses Hugo's jsonify and plainify filters for safe JSON output. Includes outputFormats configuration in hugo.toml to enable JSON output format. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-18updates to TODO.md and hugo.tomlDanilo M.1-1/+1
2026-04-18feat: add Open Graph and Twitter Card meta tags for social sharingDanilo M.1-0/+1
Implement comprehensive OG and Twitter Card support: - og:title, og:description, og:image, og:type (website/article) - og:article:published_time and og:article:author for article pages - twitter:card with summary_large_image, twitter:title, twitter:description, twitter:image - Per-page description from excerpt field with fallback to site description - Article-specific tags only rendered for pages with dates - Default dark thumbnail fallback when article has no image - Empty twitterHandle param (optional fill-in for users) Extracted head meta into new partial for maintainability. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-18refactor: syntax highlighting with Catppuccin Macchiato and copy buttonsDanilo M.1-2/+10
- Add [markup.highlight] config: noClasses=false for CSS class output, lineNos=true with lineNumbersInTable=true for proper line number rendering - Create render-codeblock.html render hook to intercept fenced code blocks and wrap with header bar (language label + copy button) - Replace chroma-custom.css entirely with Catppuccin Macchiato palette (dark theme) + Catppuccin Latte (light theme), with full token color mapping - Create code-copy.js: copy-to-clipboard logic with language pretty-name map (bash→Shell, js→JavaScript, etc.), icon swap (copy→check for 2s), and aria-live region for screen reader announcement (WCAG 4.1.3) - Update baseof.html to load code-copy.js on page kind with Hugo Pipes - WCAG AA compliance: line number contrast fixed to ~3.5:1 (--ctp-overlay0), light theme copy button color to 4.1:1 (#6c6f85), focus outline 6.21:1 (--ctp-lavender), screen reader announcements via aria-live All code blocks now render with: syntax highlighting (noClasses=true fixed), line numbers with proper table layout, language label in header, copy button with feather icons, both dark and light theme support. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-18fix: enable related articles widget on article pagesDanilo M.1-0/+14
The related widget was not displaying because the condition used .Type (the article's frontmatter type field like "life", "tech") instead of .Section (the content section like "articles"). Changed condition from eq .Type "articles" to eq .Section "articles". Also added Hugo's [related] configuration block to enable content matching by categories (weight 100) and tags (weight 80) with an 80% threshold for finding related posts. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17week-6: complete 404 and repository pages implementationDanilo M.1-2/+14
Deliverables: - Implemented language-specific 404 pages (404.en.html, 404.it.html) * Hugo i18n template pattern for automatic language routing * Full translation support for all UI strings * Easter egg modal with interactive experience * Theme-aware styling (dark/light mode) * Search functionality and recent articles - Built Repository page with full Slackware package showcase * Hero section, quick start guide, installation instructions * Responsive card grid layout for packages * GitHub repository links with visit buttons * Complete i18n translations for all content * Theme-aware styling throughout - Integrated Repository menu entry * Added to main navigation in both languages * Positioned between Contact and Privacy (weight: 4) * Added missing i18n translation keys Testing: - Verified 404 routing works correctly in Hugo dev server - Validated all translations display without warnings - Confirmed theme switching works on both pages - Tested mobile and desktop layouts - Menu entries render correctly in all views Cleanup: - Removed outdated Week 1-5 documentation - Archived progress reports in git history - Retained essential technical documentation Status: Ready for Week 7 implementation Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: update 404 redirect rules to point to correct language pagesDanilo M.1-2/+2
Changed redirects to route /it/** 404s to /it/404.html and /** 404s to /404.html instead of redirecting to home pages. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use content-based 404 pages with proper language contextDanilo M.1-2/+2
Created language-specific 404 content pages (content/en/404.md and content/it/404.md) that Hugo renders with the correct language context. Updated redirect rules and created _default/404.html layout that uses i18n properly. Now .Lang is set correctly for translation strings. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17restore: re-add 404 redirect rules to hugo.tomlDanilo M.1-3/+3
Restore the redirect rules that route /it/** and /** 404 errors to the appropriate language-specific 404 layout files. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use language-specific 404 layouts with hardcoded stringsDanilo M.1-3/+3
Created 404.en.html and 404.it.html with fully hardcoded English and Italian text. Hugo automatically routes language-specific requests to the correct layout. No i18n, no hacks, just simple and direct. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-17fix: use client-side language detection with redirect rules for 404 navigationDanilo M.1-0/+10
Rely on hugo.toml redirect rules to serve correct 404.html and detect language from window.location.pathname in notFoundNav() Alpine component. Navigation links now properly route to Italian (/it/*) or English (/*) sections based on request URL. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-15Implement taxonomy system for tags and categoriesDanilo M.1-0/+5
- 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-15Complete multilingual theme implementation with language-aware menusDanilo M.1-19/+49
- 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 shortcode location: move from shortcodes/ to layouts/shortcodes/Danilo M.1-3/+3
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: add site configuration with bilingual setup and article typesDanilo M.1-0/+91