]> danix's work - danix2-hugo-theme.git/log
danix2-hugo-theme.git
9 hours agofix: use excerpts instead of full content in article cards
Danilo M. [Sun, 5 Apr 2026 08:32:37 +0000 (10:32 +0200)] 
fix: use excerpts instead of full content in article cards

Updated both home.html and section.html to:
1. Check for 'excerpt' field in front matter first
2. If excerpt exists, use it
3. If not, generate from content: get first paragraph, convert to plain text, truncate to 150 characters

This prevents full article content from showing in feeds while respecting custom excerpts when provided.

Applies to both homepage feed and articles section list view.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 hours agotweak: increase matrix rain canvas opacity
Danilo M. [Sun, 5 Apr 2026 08:27:55 +0000 (10:27 +0200)] 
tweak: increase matrix rain canvas opacity

Increased opacity from 0.25→0.4 (dark) and 0.35→0.5 (light) to make the matrix rain effect more visible on the hero section.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 hours agofix: use articles section to properly detect and display articles
Danilo M. [Sun, 5 Apr 2026 08:27:36 +0000 (10:27 +0200)] 
fix: use articles section to properly detect and display articles

Changed home.html to fetch articles from the /articles section directly instead of filtering by Type. This properly handles existing articles that may use different type field formats.

Also increased articles shown from 3 to 6, sorted by date descending (newest first).

Supports both old articles with custom 'type' fields and new articles with the tech/life/quote/link/photo system.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 hours agofix: restore article display on homepage
Danilo M. [Sun, 5 Apr 2026 08:22:47 +0000 (10:22 +0200)] 
fix: restore article display on homepage

Simplified home.html article query to directly iterate over all pages with Type='articles'. The previous complex featured article filtering was breaking the display.

Now shows all articles in latest-first order with proper grid layout.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 hours agodocs: add comprehensive menu configuration guide
Danilo M. [Sun, 5 Apr 2026 08:15:12 +0000 (10:15 +0200)] 
docs: add comprehensive menu configuration guide

Added documentation explaining how to configure navigation menu via hugo.toml:
- Explains menu item parameters (name, pageRef, weight)
- Shows how to add new menu items
- Demonstrates external links
- Provides examples of creating pages for menu items

Also updated hugo.toml with better comments explaining menu configuration.

Co-Authored-By: Claude Haiku 4.5 <redacted>
9 hours agofix: resolve matrix rain opacity, menu styling, and featured articles
Danilo M. [Sun, 5 Apr 2026 07:52:36 +0000 (09:52 +0200)] 
fix: resolve matrix rain opacity, menu styling, and featured articles

Issues fixed:
1. Added missing header.css and footer.css imports to main.css (fixes unstyled menu)
2. Increased matrix rain canvas opacity (0.13→0.25, 0.18→0.35) for better visibility
3. Updated home.html to display featured articles first, then latest 3
4. Removed invalid pseudo-element CSS rule on canvas element

The form on /is/here should now be visible, menu properly styled, and matrix rain more prominent.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofix: remove contact and search shortcodes
Danilo M. [Sun, 5 Apr 2026 07:43:43 +0000 (09:43 +0200)] 
fix: remove contact and search shortcodes

Removed contact.html and search.html shortcodes as they won't be used in the new theme. Also removed their documentation from CONTENT_GUIDE.

Remaining shortcodes: gravatar, quote, img, figure, video, strike, em, dropcap, div, div-close, gallery, gal-img, svg, actions

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: import all remaining shortcodes from previous theme
Danilo M. [Sun, 5 Apr 2026 07:42:46 +0000 (09:42 +0200)] 
feat: import all remaining shortcodes from previous theme

Added 11 additional shortcodes with complete documentation:

Text formatting:
- strike: strikethrough text
- em: highlighted/marked text
- dropcap: paragraph with decorative drop cap

Container wrappers:
- div / div-close: semantic div containers with classes

Gallery:
- gallery: gallery container
- gal-img: gallery images (400px WebP thumbnail with link)

Utility:
- svg: inline SVG icons from assets/SVGs/
- actions: button-style action links
- search: search form with results display
- contact: comprehensive contact form

All shortcodes now fully documented in CONTENT_GUIDE with usage examples and parameters.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: add video shortcode and documentation
Danilo M. [Sun, 5 Apr 2026 07:38:47 +0000 (09:38 +0200)] 
feat: add video shortcode and documentation

Ported video shortcode from previous theme. Embeds HTML5 videos with optional autoplay, loop, and muted controls. Supports mp4, webm, and other HTML5 video formats.

Usage: {{< video src="video.mp4" width=800 height=450 autoplay=true loop=true muted=true >}}

Also updated CONTENT_GUIDE with comprehensive usage examples and parameters.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofix: use .InnerDeindent in figure shortcode
Danilo M. [Sun, 5 Apr 2026 07:37:34 +0000 (09:37 +0200)] 
fix: use .InnerDeindent in figure shortcode

Changed from .Inner to .InnerDeindent to properly evaluate and dedent inner content when a closing tag is provided.

This fixes the Hugo error: 'shortcode "figure" does not evaluate .Inner or .InnerDeindent'

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: add figure shortcode and documentation
Danilo M. [Sun, 5 Apr 2026 07:34:21 +0000 (09:34 +0200)] 
feat: add figure shortcode and documentation

Ported figure shortcode from previous theme. Wraps content in semantic <figure> element with optional title, caption, attribution, and link support.

Typical usage:
{{< figure caption="Image caption" attr="Photo by Someone" >}}
{{< img src="image.jpg" alt="Description" >}}
{{< /figure >}}

Also updated CONTENT_GUIDE with comprehensive usage examples and parameters.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agodocs: add shortcode documentation to CONTENT_GUIDE
Danilo M. [Sun, 5 Apr 2026 07:30:59 +0000 (09:30 +0200)] 
docs: add shortcode documentation to CONTENT_GUIDE

Document the three available shortcodes:
- img: responsive images with LQIP and WebP support
- quote: styled blockquotes with optional source attribution
- gravatar: profile image embedding with optional caption and link

Includes usage examples, parameters, and configuration options.

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: add img shortcode template
Danilo M. [Sun, 5 Apr 2026 07:30:10 +0000 (09:30 +0200)] 
feat: add img shortcode template

Ported img shortcode from previous theme. Creates responsive, optimized images with LQIP fade-in effect, WebP with JPEG fallback, and responsive srcsets.

Requires imageSizes config in hugo.toml, e.g.:
[params]
imageSizes = [640, 900, 1200, 1600]

Usage: {{< img src="path/to/image.jpg" alt="Description" >}}

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: add quote shortcode template
Danilo M. [Sun, 5 Apr 2026 07:27:39 +0000 (09:27 +0200)] 
feat: add quote shortcode template

Ported quote shortcode from previous theme. Allows embedding styled blockquotes with optional source attribution and links.

Usage: {{< quote source="Author Name" src="https://example.com" >}}Quote text{{< /quote >}}

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agofeat: add gravatar shortcode template
Danilo M. [Sun, 5 Apr 2026 07:19:48 +0000 (09:19 +0200)] 
feat: add gravatar shortcode template

Ported gravatar shortcode from previous theme. Allows embedding Gravatar images with customizable size, link, and caption.

Usage: {{<redacted>}}

Co-Authored-By: Claude Haiku 4.5 <redacted>
10 hours agodocs: add comprehensive content organization guide
Danilo M. [Sun, 5 Apr 2026 06:49:50 +0000 (08:49 +0200)] 
docs: add comprehensive content organization guide

11 hours agofix: correct page.html layout template for is section navigation
Danilo M. [Sun, 5 Apr 2026 06:45:36 +0000 (08:45 +0200)] 
fix: correct page.html layout template for is section navigation

11 hours agocontent: add contact page with form
Danilo M. [Sun, 5 Apr 2026 06:43:53 +0000 (08:43 +0200)] 
content: add contact page with form

11 hours agofeat: add filter functionality, archetypes, and sample content
Danilo M. [Sun, 5 Apr 2026 06:43:04 +0000 (08:43 +0200)] 
feat: add filter functionality, archetypes, and sample content

- Create filters.js for post filtering by type (tech, life, quote, link, photo)
- Add article.md and page.md archetypes with appropriate fields
- Update default.md archetype with correct TOML syntax
- Create sample content for home, articles, and about pages
- Fix section.html template resource permalink syntax

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 hours agolayout: add home, section, and page templates
Danilo M. [Sun, 5 Apr 2026 06:41:54 +0000 (08:41 +0200)] 
layout: add home, section, and page templates

11 hours agolayout: create base layout, header, footer, hero, and post card partials
Danilo M. [Sun, 5 Apr 2026 06:41:04 +0000 (08:41 +0200)] 
layout: create base layout, header, footer, hero, and post card partials

11 hours agofeat: add JavaScript modules (theme toggle, matrix rain, progress tracking, copy...
Danilo M. [Sun, 5 Apr 2026 06:40:09 +0000 (08:40 +0200)] 
feat: add JavaScript modules (theme toggle, matrix rain, progress tracking, copy-to-clipboard)

Implement all 4 JavaScript modules:
- theme-toggle.js: Theme switching with localStorage persistence
- matrix-rain.js: Animated matrix-style rain effect on canvas
- progress-bar.js: Reading progress tracking during scroll
- copy-code.js: Copy-to-clipboard functionality for code blocks

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 hours agostyle: add card, feed, code, and progress bar styles
Danilo M. [Sun, 5 Apr 2026 06:39:03 +0000 (08:39 +0200)] 
style: add card, feed, code, and progress bar styles

11 hours agostyle: add hero section with matrix canvas styling
Danilo M. [Sun, 5 Apr 2026 06:37:49 +0000 (08:37 +0200)] 
style: add hero section with matrix canvas styling

11 hours agostyle: update header and footer with theme variables
Danilo M. [Sun, 5 Apr 2026 06:37:01 +0000 (08:37 +0200)] 
style: update header and footer with theme variables

Co-Authored-By: Claude Haiku 4.5 <redacted>
11 hours agostyle: add CSS variables and base typography
Danilo M. [Sun, 5 Apr 2026 06:36:23 +0000 (08:36 +0200)] 
style: add CSS variables and base typography

11 hours agofix: remove deprecated config and unsupported highlight parameters
Danilo M. [Sun, 5 Apr 2026 06:34:44 +0000 (08:34 +0200)] 
fix: remove deprecated config and unsupported highlight parameters

11 hours agoconfig: set up sections, menus, and chroma highlighting
Danilo M. [Sun, 5 Apr 2026 06:33:04 +0000 (08:33 +0200)] 
config: set up sections, menus, and chroma highlighting

28 hours agoinitial theme setup.
Danilo M. [Sat, 4 Apr 2026 13:30:33 +0000 (15:30 +0200)] 
initial theme setup.