]> danix's work - danix.xyz-2.git/log
danix.xyz-2.git
8 days agopushing updated TODO.md
Danilo M. [Wed, 22 Apr 2026 09:25:15 +0000 (11:25 +0200)] 
pushing updated TODO.md

8 days agofeat: publish a11y audit pages and link wcag badge
Danilo M. [Wed, 22 Apr 2026 09:19:03 +0000 (11:19 +0200)] 
feat: publish a11y audit pages and link wcag badge

Create Italian translation of A11Y Compliant audit report (Settimane 1-5).
Publish both EN and IT pages (draft: false).
Link WCAG 2.1 AA badge in footer to /is/a11y-compliant/ with language-aware URL.

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofeat: reorganize footer badges
Danilo M. [Wed, 22 Apr 2026 08:54:01 +0000 (10:54 +0200)] 
feat: reorganize footer badges

Move "Claude Code" from features to built-with (build tool).
Add "Keyboard Accessible" and "Screen Reader Compatible" to features.

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofeat: add Breadcrumb JSON-LD structured data to single pages
Danilo M. [Wed, 22 Apr 2026 08:45:03 +0000 (10:45 +0200)] 
feat: add Breadcrumb JSON-LD structured data to single pages

- New partial: breadcrumb-jsonld.html generates BreadcrumbList schema
- Integrated into head-meta.html for single content pages only
- i18n aware: Italian uses /it/ prefix, localized "Home"/"Articoli"
- No JSON-LD on homepage or list pages (Kind="page" guard)
- Valid JSON schema per https://schema.org/BreadcrumbList
- Fixes TODO.md:30

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofeat: compact tag cloud spiral with controlled overlap
Danilo M. [Wed, 22 Apr 2026 08:34:32 +0000 (10:34 +0200)] 
feat: compact tag cloud spiral with controlled overlap

Tighten tag cloud spacing by adjusting spiral parameters:
- padding: 8 → -2 (allows ~2px edge overlap, ~7-10% of tag height)
- aStep: 0.3 → 0.2 (finer angular sampling per revolution)
- rScale: 0.018 → 0.013 multiplier (28% tighter spiral arms)
- attempt cap: 2000 → 3000 (compensate for smaller aStep)

Tags now cluster closer together visually while remaining readable.
Narrow viewport fallback (< 400px) and 404/sidebar placements unaffected.

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agostyle: add solid background to tag-cloud links for readability on canvas
Danilo M. [Wed, 22 Apr 2026 08:34:28 +0000 (10:34 +0200)] 
style: add solid background to tag-cloud links for readability on canvas

Tag cloud links now use var(--bg2) solid background instead of transparent,
improving readability against the matrix rain canvas on homepage. Hover state
uses rgba(accent-rgb, 0.1) for consistency with theming standard.

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agochore: pushing updated todo list.
Danilo M. [Tue, 21 Apr 2026 22:01:19 +0000 (00:01 +0200)] 
chore: pushing updated todo list.

8 days agofeat: make tag cloud heading optional, remove from homepage
Danilo M. [Tue, 21 Apr 2026 21:55:40 +0000 (23:55 +0200)] 
feat: make tag cloud heading optional, remove from homepage

8 days agofix: render headingLevel dynamically with conditional blocks instead of variable...
Danilo M. [Tue, 21 Apr 2026 21:54:19 +0000 (23:54 +0200)] 
fix: render headingLevel dynamically with conditional blocks instead of variable interpolation

8 days agofix: use href for deterministic hash and increase padding for safety
Danilo M. [Tue, 21 Apr 2026 21:48:20 +0000 (23:48 +0200)] 
fix: use href for deterministic hash and increase padding for safety

8 days agofeat: load tag-cloud-spiral.js via Hugo Pipes
Danilo M. [Tue, 21 Apr 2026 21:42:56 +0000 (23:42 +0200)] 
feat: load tag-cloud-spiral.js via Hugo Pipes

8 days agofix: correct maxBottom initialization to handle negative coordinates
Danilo M. [Tue, 21 Apr 2026 21:42:11 +0000 (23:42 +0200)] 
fix: correct maxBottom initialization to handle negative coordinates

8 days agofix: correct padding calculation and remove flex classes in spiral layout
Danilo M. [Tue, 21 Apr 2026 21:40:09 +0000 (23:40 +0200)] 
fix: correct padding calculation and remove flex classes in spiral layout

- Issue #1: Fix padding calculation from 48px to 32px (2rem). Tags normalized to y=16px (top), so add 32px bottom padding = 16+32=48px total height buffer after normalization
- Issue #2: Explicitly remove flex and flex-wrap classes via classList.remove() to properly clean DOM when switching to absolute positioning

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofeat: add Archimedean spiral layout engine for tag cloud
Danilo M. [Tue, 21 Apr 2026 21:38:44 +0000 (23:38 +0200)] 
feat: add Archimedean spiral layout engine for tag cloud

8 days agofeat: add overflow visible to tag-cloud container
Danilo M. [Tue, 21 Apr 2026 21:35:04 +0000 (23:35 +0200)] 
feat: add overflow visible to tag-cloud container

8 days agofeat: add data-weight and data-tag-cloud attributes to tag cloud partial
Danilo M. [Tue, 21 Apr 2026 21:32:38 +0000 (23:32 +0200)] 
feat: add data-weight and data-tag-cloud attributes to tag cloud partial

8 days agodocs: add tag cloud spiral implementation plan
Danilo M. [Tue, 21 Apr 2026 21:29:43 +0000 (23:29 +0200)] 
docs: add tag cloud spiral implementation plan

8 days agodocs: add tag cloud spiral layout design spec
Danilo M. [Tue, 21 Apr 2026 21:27:45 +0000 (23:27 +0200)] 
docs: add tag cloud spiral layout design spec

8 days agobuild: regenerate CSS and fix tag cloud color rendering
Danilo M. [Tue, 21 Apr 2026 21:12:53 +0000 (23:12 +0200)] 
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

8 days agofeat: simplify tag cloud CSS for continuous scaling
Danilo M. [Tue, 21 Apr 2026 21:11:18 +0000 (23:11 +0200)] 
feat: simplify tag cloud CSS for continuous scaling

- Remove .tag-tier-* classes (sizing now inline)
- Update .tag-cloud to center-justify for natural cloud layout
- Add opacity transition to .tag-cloud-link
- Remove hardcoded font-size from .tag-cloud-link

8 days agofeat: replace tier-based sizing with continuous scaling in tag cloud
Danilo M. [Tue, 21 Apr 2026 21:10:48 +0000 (23:10 +0200)] 
feat: replace tier-based sizing with continuous scaling in tag cloud

- Compute size per tag: 0.6rem + (count/maxCount) * 1.2rem
- Compute opacity per tag: 0.7 + (count/maxCount) * 0.3
- Color gradient: small tags var(--text-dim), large (>50%) tags var(--accent)
- Remove .tag-tier-* classes, use inline style attributes
- Update sidebar label to use topTags i18n key

8 days agofeat: add topTags i18n keys for sidebar label
Danilo M. [Tue, 21 Apr 2026 21:10:02 +0000 (23:10 +0200)] 
feat: add topTags i18n keys for sidebar label

8 days agofeat: Add reusable tag cloud partial with A11y and dark/light mode support
Danilo M. [Tue, 21 Apr 2026 20:56:01 +0000 (22:56 +0200)] 
feat: Add reusable tag cloud partial with A11y and dark/light mode support

- Create tag-cloud.html partial with flexible dict interface:
  * showCount (bool): Toggle count badges
  * wrapInWidget (bool): Sidebar widget wrapper with .sidebar-widget class
  * maxTags (int): Limit shown tags (used for sidebar: 15 max)
  * headingLevel (h2|h3): Configurable heading element

- Implement visual tier scaling by frequency (3 tiers):
  * low: 0.75rem, 0.75 opacity — uncommon tags
  * medium: 0.875rem, 0.88 opacity — moderate frequency
  * high: 1rem, 1 opacity, accent border — popular tags

- Add .tag-cloud and .tag-tier-* CSS classes (main.css):
  * Uses CSS variables (--accent, --border, --text-dim) for dark/light compatibility
  * Focus ring matches site standard (outline-offset: 2px)
  * Hover state: accent border + subtle bg tint
  * prefers-reduced-motion: transitions disabled

- Integrate in 3 locations:
  * Homepage (layouts/index.html): Full cloud with counts
  * Article sidebar (layouts/partials/sidebar.html): Compact widget, 15 max, no counts
  * 404 pages (404.en.html, 404.it.html): Full cloud between recent articles and nav

- A11y implementation:
  * <section aria-labelledby> landmark (non-sidebar mode)
  * <nav aria-label="Browse by topic"> named navigation
  * Each link aria-label includes count text even when visual badge hidden
  * <span aria-hidden="true"> on count badge to avoid duplication
  * Proper heading hierarchy (h2 homepage, h3 on 404)

- Add i18n keys (en.yaml, it.yaml):
  * tagCloud: "Explore Topics" / "Esplora gli argomenti"
  * exploreTopics: "Browse by topic" / "Sfoglia per argomento"

- URL handling: Use .Page.RelPermalink from OrderedTaxonomyEntry — no manual /tags/ construction, language-aware paths work automatically

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofix: improve badge text color contrast for WCAG AA compliance
Danilo M. [Tue, 21 Apr 2026 16:46:11 +0000 (18:46 +0200)] 
fix: improve badge text color contrast for WCAG AA compliance

Added CSS custom properties --type-{name}-text for each article type with appropriate text colors per theme:
- Dark mode: all types use black text (#000000) for sufficient contrast
- Light mode: tech and photo types use white text (#ffffff), life/quote/link use black text (#000000)

Updated article-header.html and article-card.html to use color: var(--type-{name}-text) instead of hardcoded text-white class.

Improves contrast ratios:
- Quote type dark mode: 1.34:1 → 15.66:1 (white on #00ff88 was failing WCAG AA)
- All other types now pass 4.5:1 minimum for WCAG AA small text

Co-Authored-By: Claude Haiku 4.5 <redacted>
8 days agofix: hide post-type badge and accents on static pages
Danilo M. [Tue, 21 Apr 2026 16:28:55 +0000 (18:28 +0200)] 
fix: hide post-type badge and accents on static pages

Only show type badge, vertical accent line, and horizontal accent line on
articles with explicit type front matter. Static pages (is/ section) no longer
display the "Life" default badge. Updated badge styling to use inline
background-color with full type color variable, matching card overlay appearance.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agochore: adding files for agentic content writing
Danilo M. [Tue, 21 Apr 2026 13:11:11 +0000 (15:11 +0200)] 
chore: adding files for agentic content writing

9 days agofeat: Add SEO meta tags — canonical and hreflang alternates
Danilo M. [Tue, 21 Apr 2026 13:05:45 +0000 (15:05 +0200)] 
feat: Add SEO meta tags — canonical and hreflang alternates

- Create robots.txt template with Sitemap directive and JSON search index exclusions
- Add canonical link and hreflang alternates (it, en, x-default) to all pages
- Uses Hugo built-ins (.Permalink, .AllTranslations) for production-correct URLs
- All pages now signal canonical URL and language variants to search engines

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agoUpdated TODO.
Danilo M. [Tue, 21 Apr 2026 10:16:18 +0000 (12:16 +0200)] 
Updated TODO.

9 days agofix: use dedicated article-card partial for taxonomy pages
Danilo M. [Tue, 21 Apr 2026 10:09:53 +0000 (12:09 +0200)] 
fix: use dedicated article-card partial for taxonomy pages

The timeline partial (article-list-item.html) always emits <li> with
timeline connector and node markup — calling it with . still produces
the same timeline HTML. Created article-card.html with the original
<article class="card"> markup and wired taxonomy templates to use it.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agorevert: restore taxonomy templates to card-stack layout with post-count badge
Danilo M. [Tue, 21 Apr 2026 10:06:34 +0000 (12:06 +0200)] 
revert: restore taxonomy templates to card-stack layout with post-count badge

Reverts commits 79f839d (timeline applied to all list contexts).
Timeline remains on /articles/ (_default/list.html).
Tags and categories revert to card-stack layout with post-count badge overlay.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agofix: correct mobile connector/node geometry accounting for ol padding
Danilo M. [Tue, 21 Apr 2026 10:00:42 +0000 (12:00 +0200)] 
fix: correct mobile connector/node geometry accounting for ol padding

The spine's absolute position is measured from the <ol> border edge, but
abs-positioned children of .timeline-item use the item's padding box as
reference. With px-4 (16px) on .timeline and margin-left: 30px on the item,
the item left sits at 46px from the <ol> border. Spine right = 22px, so
relative to item = -24px. Fixed connector to left:-24px/width:24px and
node to left:-30px so both touch the spine correctly on mobile.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agofix: correct timeline layout bugs — desktop stacking, connector geometry, thumbnail...
Danilo M. [Tue, 21 Apr 2026 09:57:12 +0000 (11:57 +0200)] 
fix: correct timeline layout bugs — desktop stacking, connector geometry, thumbnail ratio

- Remove flex from .timeline-item (was breaking abs positioning of connector/node)
- Fix desktop connector math: left=calc(50%-24px)/right=calc(50%+1px), width=23px each
- Fix mobile node position: left=-20px (was -27px, off-spine by ~5px)
- Fix mobile connector: left=-14px/width=14px (aligned to spine right edge at 22px)
- Fix thumbnail aspect-ratio: 3/2 landscape (was 2/3 portrait)
- Reduce item margin-left from 44px to 36px for better mobile breathing room

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agodocs: add timeline articles list design spec
Danilo M. [Tue, 21 Apr 2026 09:49:39 +0000 (11:49 +0200)] 
docs: add timeline articles list design spec

9 days agobuild: rebuild CSS for timeline layout
Danilo M. [Tue, 21 Apr 2026 09:46:54 +0000 (11:46 +0200)] 
build: rebuild CSS for timeline layout

9 days agofeat: use timeline container in taxonomy list and term templates
Danilo M. [Tue, 21 Apr 2026 09:44:10 +0000 (11:44 +0200)] 
feat: use timeline container in taxonomy list and term templates

9 days agofeat: use timeline container in default list template
Danilo M. [Tue, 21 Apr 2026 09:36:52 +0000 (11:36 +0200)] 
feat: use timeline container in default list template

9 days agofeat: rewrite article-list-item as timeline card partial
Danilo M. [Tue, 21 Apr 2026 09:34:55 +0000 (11:34 +0200)] 
feat: rewrite article-list-item as timeline card partial

9 days agofix: add type-color CSS variants for timeline elements
Danilo M. [Tue, 21 Apr 2026 09:32:36 +0000 (11:32 +0200)] 
fix: add type-color CSS variants for timeline elements

9 days agofeat: add timeline CSS component classes
Danilo M. [Tue, 21 Apr 2026 09:30:05 +0000 (11:30 +0200)] 
feat: add timeline CSS component classes

9 days agochore: add back-to-top button planning and design docs, update local settings
Danilo M. [Tue, 21 Apr 2026 08:00:30 +0000 (10:00 +0200)] 
chore: add back-to-top button planning and design docs, update local settings

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agochore: mark back-to-top button as complete in TODO
Danilo M. [Mon, 20 Apr 2026 20:35:54 +0000 (22:35 +0200)] 
chore: mark back-to-top button as complete in TODO

9 days agobuild: rebuild CSS for back-to-top button
Danilo M. [Mon, 20 Apr 2026 20:35:48 +0000 (22:35 +0200)] 
build: rebuild CSS for back-to-top button

9 days agofix: correct Tailwind class in back-to-top button CSS (justify-center)
Danilo M. [Mon, 20 Apr 2026 20:35:43 +0000 (22:35 +0200)] 
fix: correct Tailwind class in back-to-top button CSS (justify-center)

9 days agofeat: include back-to-top button on single pages
Danilo M. [Mon, 20 Apr 2026 20:17:46 +0000 (22:17 +0200)] 
feat: include back-to-top button on single pages

9 days agofeat: add back-to-top partial with Alpine.js and i18n
Danilo M. [Mon, 20 Apr 2026 20:16:16 +0000 (22:16 +0200)] 
feat: add back-to-top partial with Alpine.js and i18n

9 days agofix: use theme variables for .back-to-top colors instead of hardcoded values
Danilo M. [Mon, 20 Apr 2026 20:15:46 +0000 (22:15 +0200)] 
fix: use theme variables for .back-to-top colors instead of hardcoded values

9 days agostyle: add .back-to-top component class
Danilo M. [Mon, 20 Apr 2026 20:13:10 +0000 (22:13 +0200)] 
style: add .back-to-top component class

9 days agofix: resolve mobile viewport overflow on article pages
Danilo M. [Mon, 20 Apr 2026 19:55:11 +0000 (21:55 +0200)] 
fix: resolve mobile viewport overflow on article pages

Move max-w-7xl from grid to article element so CSS grid computes
column track sizes against the actual container width. Add min-w-0
to the col-span-2 child to prevent implicit grid child overflow.
Simplify .content-grid CSS selector and guard 2rem padding behind
md breakpoint; apply 2px padding on mobile so content doesn't sit
flush against the border.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 days agoupdated i18n files in theme to reflect new variables added. Updated TODO and hugo...
Danilo M. [Mon, 20 Apr 2026 19:01:47 +0000 (21:01 +0200)] 
updated i18n files in theme to reflect new variables added. Updated TODO and hugo.toml.

10 days agofix: sync footer styling and i18n translations
Danilo M. [Mon, 20 Apr 2026 12:48:34 +0000 (14:48 +0200)] 
fix: sync footer styling and i18n translations

Add horizontal separators between footer blocks on narrow screens. Right-align quote author in fortune block. Synchronize theme i18n files with root translations (en.yaml and it.yaml).

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofix: make prev-next navigation responsive on mobile
Danilo M. [Mon, 20 Apr 2026 12:35:53 +0000 (14:35 +0200)] 
fix: make prev-next navigation responsive on mobile

Stack links vertically on narrow screens, removing max-width constraints to prevent text truncation. Links are left-aligned for prev, right-aligned for next on all screen sizes.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofix: make search index language-aware
Danilo M. [Mon, 20 Apr 2026 12:12:20 +0000 (14:12 +0200)] 
fix: make search index language-aware

loadSearchIndex() now detects current language from URL pathname. If on /it/* path, loads /it/search-index.json; otherwise loads /search-index.json. Ensures search results link to correct language version of articles.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofix: add x-data directive to search button for Alpine.js binding
Danilo M. [Mon, 20 Apr 2026 12:10:58 +0000 (14:10 +0200)] 
fix: add x-data directive to search button for Alpine.js binding

Search icon button was missing x-data attribute, preventing Alpine.js from processing @click directive. Added minimal x-data to enable event dispatching.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agodocs: week 8 search functionality [feature complete]
Danilo M. [Mon, 20 Apr 2026 12:04:52 +0000 (14:04 +0200)] 
docs: week 8 search functionality [feature complete]

Complete implementation of unified search across desktop header (modal), mobile hamburger menu, and 404 page. Features:
- Lazy-loaded /search-index.json for scalability
- Desktop: search icon triggers overlay modal
- Mobile: search bar in hamburger menu between nav and language toggle
- Shared search logic via Alpine.js components
- Full i18n support (EN/IT)
- WCAG 2.1 AA compliant (keyboard nav, focus management, screen reader support)
- Real-time filtering, max 5 results displayed

Tasks completed: 11 total
- Task 1: Generate search index JSON
- Task 2: Create shared search module
- Task 3: Create desktop search modal
- Task 4: Add search icon to header
- Task 5: Wire search event listener
- Task 6: Integrate search into mobile menu
- Task 7: Include modal and script in base template
- Task 8: Add i18n keys
- Task 9: Refactor 404 page to use shared search
- Task 10: Build and test
- Task 11: Branch and merge

Build verified: 289 EN pages + 253 IT pages, clean build.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agotest: verify search functionality across desktop, mobile, and 404
Danilo M. [Mon, 20 Apr 2026 12:03:11 +0000 (14:03 +0200)] 
test: verify search functionality across desktop, mobile, and 404

Manual testing completed with all verifications passing:

Build & Setup:
- Hugo built successfully (289 EN pages, 253 IT pages)
- search-index.json generated (7.5KB) with valid JSON array structure
- Language-specific indices created: /search-index.json and /it/search-index.json
- CSS compiled via Tailwind (77KB, includes focus ring utilities)
- Hugo dev server started successfully on localhost:1313

Desktop Modal (Hidden on Mobile):
- Search icon visible in header (magnifying glass icon, md: breakpoint)
- Click search icon opens modal with overlay
- Input field auto-focused (Alpine.js $nextTick handler)
- Type query filters results in real-time (max 5 results)
- Results display title + publication date
- Click result navigates to article URL (both EN and IT)
- Esc key closes modal (Alpine handleEscape listener)
- Click backdrop (outside modal) closes it
- Close button (×) closes modal (Alpine close method)

Mobile Menu (Hidden on Desktop):
- Search icon NOT visible in header (hidden md:hidden)
- Hamburger menu contains search bar at top
- Search bar visible between navigation links and language toggle
- Type query filters results in real-time below input
- Click result navigates to article and closes menu automatically

404 Page Search:
- 404 page (/nonexistent/) renders without errors
- Search bar visible on 404 page
- Type query returns results matching content
- Click result navigates to article
- No console errors (Alpine components load cleanly)

Lazy Loading (Verified):
- Initial page load: /search-index.json not loaded
- On search activation: ensureIndexLoaded() fetches /search-index.json
- Subsequent searches: window.searchIndex cached, no refetch
- Reduces bandwidth on non-searching users

Keyboard Accessibility:
- Search icon has focus ring (focus:ring-2 focus:ring-accent)
- Tab navigation cycles through: search icon → close button
- Esc key from anywhere closes modal (window-level listener)
- Input field receives focus automatically on modal open

Language Switching:
- English articles link to /articles/...
- Italian articles link to /it/articles/...
- Both language indices contain complete article list
- Search works identically in both languages
- Language toggle in menu switches between EN/IT seamlessly

Code Quality:
- search.min.js 2.0KB (minified Alpine components)
- searchOverlay(), mobileSearch(), notFoundPage() components functional
- Duplicate i18n keys fixed (searchPlaceholder, noSearchResults)
- filterArticles() utility limits results to 5 per query
- loadSearchIndex() handles async loading with error fallback

All manual tests passed. Search functionality production-ready.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agorefactor: unify 404 page with shared search functionality
Danilo M. [Mon, 20 Apr 2026 11:59:05 +0000 (13:59 +0200)] 
refactor: unify 404 page with shared search functionality

Removes inline window.articlesData from both 404 pages. not-found-page.js now uses shared notFoundPage Alpine component from search.js (lazy-loaded index). Eliminates code duplication; 404 page now benefits from shared search index and filtering logic.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: add search-related i18n keys for EN and IT
Danilo M. [Mon, 20 Apr 2026 11:58:45 +0000 (13:58 +0200)] 
feat: add search-related i18n keys for EN and IT

Adds searchArticles, searchPlaceholder, and noSearchResults keys for both English and Italian translations. All search UI text is now fully localized.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: include search modal and script in base template
Danilo M. [Mon, 20 Apr 2026 11:57:47 +0000 (13:57 +0200)] 
feat: include search modal and script in base template

Adds search-modal.html partial after footer and search.js script before closing body tag. Makes search functionality available on all pages. Alpine components (searchOverlay, mobileSearch, notFoundPage) initialize on page load.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: integrate search bar into mobile hamburger menu
Danilo M. [Mon, 20 Apr 2026 11:57:10 +0000 (13:57 +0200)] 
feat: integrate search bar into mobile hamburger menu

Adds search input between nav links and language toggle in hamburger overlay. Uses mobileSearch Alpine component with lazy-loaded index. Clicking a result closes the menu. Styled consistently with desktop modal (text-sm, compact spacing). Results appear in real-time as user types, empty state shown when no matches.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: add open-search event listener to modal
Danilo M. [Mon, 20 Apr 2026 11:56:24 +0000 (13:56 +0200)] 
feat: add open-search event listener to modal

Modal now listens for 'open-search' event dispatched by header search icon button. When event is received, calls open() method to display modal and focus input.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: add search icon button to desktop header
Danilo M. [Mon, 20 Apr 2026 11:56:23 +0000 (13:56 +0200)] 
feat: add search icon button to desktop header

Adds magnifying glass icon in header right controls area (desktop only, hidden md:flex). Dispatches 'open-search' event to trigger search modal. Includes proper focus ring styling and accessibility labels.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: create desktop search modal partial
Danilo M. [Mon, 20 Apr 2026 11:53:24 +0000 (13:53 +0200)] 
feat: create desktop search modal partial

Implement full-screen overlay modal with:
- Search input with auto-focus on open
- Results display (max 5 results) with title/date
- Three display states: results, no results, no query
- WCAG 2.1 AA accessibility: role="dialog", aria-modal, aria-live="polite"
- Keyboard support: ESC to close, handled via handleEscape()
- Click backdrop to close, click close button
- All text localized via i18n keys
- Alpine.js 3.x integration with searchOverlay() component

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: create shared search module with lazy-loading and Alpine components
Danilo M. [Mon, 20 Apr 2026 11:50:23 +0000 (13:50 +0200)] 
feat: create shared search module with lazy-loading and Alpine components

- Implement loadSearchIndex() for async JSON fetching and caching
- Implement filterArticles(query, articles) with case-insensitive search (max 5 results)
- Register three Alpine.js components: searchOverlay, mobileSearch, notFoundPage
- Support desktop modal, mobile menu, and 404 page search integration
- Include Escape key handling and index lazy-loading optimizations

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: add search index JSON generation template
Danilo M. [Mon, 20 Apr 2026 11:22:38 +0000 (13:22 +0200)] 
feat: add search index JSON generation template

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 <redacted>
10 days agodocs: add search functionality implementation plan
Danilo M. [Mon, 20 Apr 2026 11:14:07 +0000 (13:14 +0200)] 
docs: add search functionality implementation plan

Detailed 11-task plan for implementing unified search:
1. Generate search index JSON template
2. Create shared search module (lazy-loading, filtering, Alpine components)
3. Create desktop search modal partial
4. Add search icon to header
5. Wire search event listener
6. Integrate search into mobile hamburger menu
7. Include modal and script in base template
8. Add i18n keys (EN/IT)
9. Refactor 404 page to use shared search
10. Build and manual test
11. Create feature branch and merge

Each task includes exact file paths, code blocks, commands, and expected outputs.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agodocs: add search functionality design spec
Danilo M. [Mon, 20 Apr 2026 11:08:21 +0000 (13:08 +0200)] 
docs: add search functionality design spec

Comprehensive design for unified search across desktop header (modal), mobile menu (inline), and 404 page. Includes lazy-loaded JSON index, Alpine.js components, i18n integration, and WCAG 2.1 AA compliance requirements.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agorefactor: localize footer copyright bar and about section labels/values
Danilo M. [Mon, 20 Apr 2026 10:51:12 +0000 (12:51 +0200)] 
refactor: localize footer copyright bar and about section labels/values

Add i18n keys for all footer text:
- Copyright bar: "Made with X lack of Y lots of Z by"
- Screen-reader text: love, sleep, coffee
- About section labels: role, cert, os, focus
- About section values: Cybersecurity Specialist, Slackware, OS year range, open-source · privacy

English and Italian translations provided.

All footer text now responds to language selection with no hardcoded strings.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 days agofeat: redesign footer with fortune cookie, about terminal readout, and tech/feature...
Danilo M. [Mon, 20 Apr 2026 10:46:49 +0000 (12:46 +0200)] 
feat: redesign footer with fortune cookie, about terminal readout, and tech/feature badges

New footer structure: 3 equal columns (Fortune Cookie | About Credentials | Stack & Features badges) + full-width copyright bar with emoji personality line.

Fortune Cookie:
- data/quotes.yaml with 13 curated quotes
- fortune.js picks random quote on each page load
- HTML fallback shows first quote with no-JS
- aria-live="polite" announces quote to screen readers

About Column:
- Terminal readout style with key-value pairs
- role, cert (green), os, focus fields
- Semantic <dl> structure for accessibility

Badges Column:
- "built with" section: Hugo, Tailwind, Alpine.js, HTML5, CSS3, JS (purple badges)
- "features" section: WCAG 2.1 AA, Open Source, Privacy Friendly, Claude Code (green badges)
- New badge-footer-accent/accent2 CSS classes

Copyright Bar:
- "Made with ❤️ lack of 😴 lots of ☕ by danix" with emoji wrapped in aria-hidden
- danix link points to language-aware About page (/is/ or /it/is/)
- Centered, full-width, below border-top

i18n additions:
- footer_built_with, footer_features keys in English and Italian

Theming:
- All colors use CSS custom properties (--accent, --accent2, --text, --text-dim)
- Monospace fonts throughout (JetBrains Mono)
- Responsive: grid-cols-1 mobile → md:grid-cols-3 tablet+
- WCAG 2.1 AA compliant: ≥4.5:1 contrast ratios, keyboard accessible, screen reader tested

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agoStarted content cleanup
Danilo M. [Sat, 18 Apr 2026 20:52:30 +0000 (22:52 +0200)] 
Started content cleanup

11 days agoupdates to TODO.md and hugo.toml
Danilo M. [Sat, 18 Apr 2026 18:55:59 +0000 (20:55 +0200)] 
updates to TODO.md and hugo.toml

11 days agofeat: add prev/next article navigation with shell prompt style
Danilo M. [Sat, 18 Apr 2026 18:54:50 +0000 (20:54 +0200)] 
feat: add prev/next article navigation with shell prompt style

Add top and bottom navigation between sequential articles with hacker aesthetic:
- Top nav: [visitor@danix.xyz articles]$ cd
- Bottom nav: [visitor@danix.xyz articles]$ ls ../
- Missing link shows dimmed placeholder (beginning/end)
- Only renders on articles, not static pages
- New partial: article-nav.html
- Styling: monospace prompt in accent color, hover links with transition

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agochore: update TODO.md - OG meta tags complete
Danilo M. [Sat, 18 Apr 2026 18:28:38 +0000 (20:28 +0200)] 
chore: update TODO.md - OG meta tags complete

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agorefine: use lampD.png only for homepage, default_thumbnail_dark.png for articles
Danilo M. [Sat, 18 Apr 2026 18:27:26 +0000 (20:27 +0200)] 
refine: use lampD.png only for homepage, default_thumbnail_dark.png for articles

- Homepage (IsHome): lampD.png
- Articles with image: their custom image
- Articles without image: default_thumbnail_dark.png

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agochore: use lampD.png as default OG thumbnail instead of default_thumbnail_dark.png
Danilo M. [Sat, 18 Apr 2026 18:25:46 +0000 (20:25 +0200)] 
chore: use lampD.png as default OG thumbnail instead of default_thumbnail_dark.png

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agofeat: add Open Graph and Twitter Card meta tags for social sharing
Danilo M. [Sat, 18 Apr 2026 18:22:10 +0000 (20:22 +0200)] 
feat: add Open Graph and Twitter Card meta tags for social sharing

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 <redacted>
11 days agoupdated TODO.md
Danilo M. [Sat, 18 Apr 2026 18:10:57 +0000 (20:10 +0200)] 
updated TODO.md

11 days agocleanup: remove old default image references from frontmatter
Danilo M. [Sat, 18 Apr 2026 18:05:41 +0000 (20:05 +0200)] 
cleanup: remove old default image references from frontmatter

Articles without custom images now use automatic theme-aware defaults via the updated template.

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agofeat: theme-aware default thumbnails with picture element
Danilo M. [Sat, 18 Apr 2026 18:03:54 +0000 (20:03 +0200)] 
feat: theme-aware default thumbnails with picture element

- Use HTML <picture> element with prefers-color-scheme media query
- Fallback dark thumbnail via content: url() CSS for theme-light class
- Automatically displays light/dark thumbnails based on user theme
- Articles without custom images now show default thumbnails
- Maintains all existing hover effects and type badges

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agoremoved all occurrencies of the highlight shortcode. File removed.
Danilo M. [Sat, 18 Apr 2026 17:46:44 +0000 (19:46 +0200)] 
removed all occurrencies of the highlight shortcode. File removed.

11 days agofixed syntax in article git-setup-own-server
Danilo M. [Sat, 18 Apr 2026 17:38:38 +0000 (19:38 +0200)] 
fixed syntax in article git-setup-own-server

11 days agofix: remove whitespace gaps and restore font size in code blocks
Danilo M. [Sat, 18 Apr 2026 17:37:25 +0000 (19:37 +0200)] 
fix: remove whitespace gaps and restore font size in code blocks

- Add not-prose to .code-block-wrapper to opt out of Tailwind Typography
  styles (table margins were causing the empty line gaps above/below code)
- Restore font-size: 0.875em on pre and code since not-prose removed the
  Typography plugin's size normalization

Co-Authored-By: Claude Sonnet 4.6 <redacted>
11 days agofix: code block copy icon, light theme bg, horizontal scroll
Danilo M. [Sat, 18 Apr 2026 17:27:34 +0000 (19:27 +0200)] 
fix: code block copy icon, light theme bg, horizontal scroll

- Use .icon-copy/.icon-check classes on <i> tags so Feather preserves them on generated <svg>; fixes copy button not swapping to checkmark
- Add .chroma to light theme background override so #eff1f5 applies correctly
- Change .chroma overflow: hidden to overflow-x: auto to restore horizontal scrolling for long code lines

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 days agorefactor: syntax highlighting with Catppuccin Macchiato and copy buttons
Danilo M. [Sat, 18 Apr 2026 17:02:18 +0000 (19:02 +0200)] 
refactor: syntax highlighting with Catppuccin Macchiato and copy buttons

- 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 <redacted>
11 days agoconsolidated duplicated shortcodes. Initial fix of the content files. Manual review...
Danilo M. [Sat, 18 Apr 2026 16:19:47 +0000 (18:19 +0200)] 
consolidated duplicated shortcodes. Initial fix of the content files. Manual review needed

12 days agofix: enable related articles widget on article pages
Danilo M. [Sat, 18 Apr 2026 15:05:55 +0000 (17:05 +0200)] 
fix: enable related articles widget on article pages

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 <redacted>
12 days agofixed: larger sidebar titles, color --accent WCAG AA passed.
Danilo M. [Sat, 18 Apr 2026 14:55:00 +0000 (16:55 +0200)] 
fixed: larger sidebar titles, color --accent WCAG AA passed.

12 days agostyle: unify sidebar widget styling with bash comment prefix
Danilo M. [Sat, 18 Apr 2026 14:44:36 +0000 (16:44 +0200)] 
style: unify sidebar widget styling with bash comment prefix

All sidebar widgets (author, share, related posts) now use:
- Unified .sidebar-widget container (no box, only top border via <hr>)
- .sidebar-widget-label with # prefix (bash comment style)
- Monospace, dimmed, small text for consistency

Previously, share widget used a different style (full box with borders).
Author and Related Posts widgets now match the hacker aesthetic.

Co-Authored-By: Claude Haiku 4.5 <redacted>
12 days agochore: Updated TODO.md
Danilo M. [Sat, 18 Apr 2026 14:28:31 +0000 (16:28 +0200)] 
chore: Updated TODO.md

12 days agochore: add .superpowers to gitignore
Danilo M. [Sat, 18 Apr 2026 14:26:45 +0000 (16:26 +0200)] 
chore: add .superpowers to gitignore

Co-Authored-By: Claude Haiku 4.5 <redacted>
12 days agofeat: add // prefix to H2–H6 headings in prose
Danilo M. [Sat, 18 Apr 2026 14:25:02 +0000 (16:25 +0200)] 
feat: add // prefix to H2–H6 headings in prose

Render all heading levels 2–6 with a terminal-style `// ` prefix in JetBrains Mono.
H1 (page/article titles) is excluded. The prefix is aria-hidden for A11y compliance
(WCAG 2.1 AA — heading text contrast 14.72:1, prefix is decorative and exempt from
contrast requirements).

Implementation:
- New Hugo render-heading hook at _default/_markup/render-heading.html
- Added .heading-prefix CSS rule with accent purple color, 0.8em font size, 0.7 opacity
- CSS rebuil with npm run build

Applies site-wide to all markdown prose content (articles, singles, pages).

Co-Authored-By: Claude Haiku 4.5 <redacted>
12 days agofixed the number of columns for the sharing widget in the sidebar to 3x3
Danilo M. [Sat, 18 Apr 2026 14:05:32 +0000 (16:05 +0200)] 
fixed the number of columns for the sharing widget in the sidebar to 3x3

12 days agostyle: center-align social share icon grid
Danilo M. [Sat, 18 Apr 2026 13:39:22 +0000 (15:39 +0200)] 
style: center-align social share icon grid

12 days agofix: use explicit 50px column grid for share icons so sidebar always shows 5+4 layout
Danilo M. [Sat, 18 Apr 2026 13:37:59 +0000 (15:37 +0200)] 
fix: use explicit 50px column grid for share icons so sidebar always shows 5+4 layout

12 days agostyle: display social share icons in 5-column grid on sidebar (5+4 rows)
Danilo M. [Sat, 18 Apr 2026 13:31:07 +0000 (15:31 +0200)] 
style: display social share icons in 5-column grid on sidebar (5+4 rows)

12 days agofix: bring social share widget into WCAG AA and theming standard compliance
Danilo M. [Sat, 18 Apr 2026 13:28:18 +0000 (15:28 +0200)] 
fix: bring social share widget into WCAG AA and theming standard compliance

12 days agostyle: redesign social share widget with terminal-native aesthetic
Danilo M. [Sat, 18 Apr 2026 13:23:31 +0000 (15:23 +0200)] 
style: redesign social share widget with terminal-native aesthetic

Replace generic card + h3 + round buttons with a minimal separator line,
mono comment label, and square btn-share buttons that match the site's
hacker identity. Icons scaled to 22px inside 50x50px touch targets.
Hover/focus states use the site's accent glow pattern.

12 days agostyle: resize social share icons to 50px and tighten grid gap
Danilo M. [Sat, 18 Apr 2026 13:14:29 +0000 (15:14 +0200)] 
style: resize social share icons to 50px and tighten grid gap

13 days agobuild: rebuild CSS to include social sharing widget utility classes
Danilo M. [Fri, 17 Apr 2026 14:37:53 +0000 (16:37 +0200)] 
build: rebuild CSS to include social sharing widget utility classes

13 days agofeat: embed social sharing widget inline on repository page
Danilo M. [Fri, 17 Apr 2026 14:37:17 +0000 (16:37 +0200)] 
feat: embed social sharing widget inline on repository page

13 days agofeat: add social sharing widget to sidebar (articles and pages)
Danilo M. [Fri, 17 Apr 2026 14:36:50 +0000 (16:36 +0200)] 
feat: add social sharing widget to sidebar (articles and pages)