summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/article-single.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-10 11:29:00 +0200
committerDanilo M. <danix@danix.xyz>2026-04-10 11:29:00 +0200
commitc42150058196f5affad5c6c590e99dd2fc7321c3 (patch)
treecb0a7ad297128a43d32111e403959491573b6ace /layouts/_partials/article-single.html
parentd51e4ef7dcd8609cd008a803f9d51674ac3d3ed2 (diff)
downloaddanixxyz-theme-c42150058196f5affad5c6c590e99dd2fc7321c3.tar.gz
danixxyz-theme-c42150058196f5affad5c6c590e99dd2fc7321c3.zip
feat: complete Hugo theme implementation from mockups
Transform all production-ready mockup files into a fully functional Hugo theme with all design patterns, components, and interactivity. Implements the complete plan: token alignment, global shell, homepage, articles section, single article views, photo gallery, static pages, and 404 page. Changes: - Phase 0: Token alignment (--color-* → --type-*, add spacing/z-index/timing scales) - Phase 1a: Global shell (baseof.html, hamburger menu, theme toggle, matrix rain) - Phase 1b: Homepage (hero layout, glitch/typing/scroll-reveal effects) - Phase 1c: Articles section (timeline layout, filter system, featured cards) - Phase 1d: Single article (meta bar, share sidebar, footer nav, progress bar) - Phase 1e: Photo gallery (lightbox, grid layout, shortcode updates) - Phase 1f: Static pages (about/contact page layout) - Phase 1g: 404 page (standalone HTML, quote randomization, recent articles) New files: - 6 CSS components: hamburger, article-hero, share-sidebar, timeline, lightbox, 404 - 8 JS modules: hamburger, glitch, typing, scroll-reveal, share-sidebar, lightbox, 404, photo-utils - 6 template partials: article-single, featured-card, photo-article, share-sidebar, static-page, timeline-item - 1 layout: 404.html (standalone) Updated: - All CSS variables with comprehensive token system - All JS modules integrated into main.js - All shortcodes (gallery, gal-img) for lightbox compatibility - All layout files (baseof, home, section, page) with new dispatching logic Verified: Hugo build succeeds with 21 pages, no errors. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_partials/article-single.html')
-rw-r--r--layouts/_partials/article-single.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/layouts/_partials/article-single.html b/layouts/_partials/article-single.html
new file mode 100644
index 0000000..f030869
--- /dev/null
+++ b/layouts/_partials/article-single.html
@@ -0,0 +1,56 @@
+<article class="article-single">
+ <!-- Article Hero -->
+ {{ if .Params.image }}
+ <div class="article-hero" style="background-image: url('{{ .Params.image }}')">
+ <div class="article-hero-overlay"></div>
+ <div class="article-hero-content">
+ <nav class="article-breadcrumb">
+ <a href="/articles/">Articles</a>
+ <span>/</span>
+ <span>{{ .Title }}</span>
+ </nav>
+ <h1>{{ .Title }}</h1>
+ </div>
+ </div>
+ {{ end }}
+
+ <!-- Article Meta Bar -->
+ <div class="article-meta-bar">
+ <div class="article-meta">
+ <span class="article-type-badge type-{{ .Params.type }}">{{ .Params.type }}</span>
+ <span class="article-date">{{ .Date.Format "Jan 02, 2006" }}</span>
+ <span class="article-read-time">{{ .ReadingTime }} min read</span>
+ </div>
+ </div>
+
+ <!-- Share Sidebar (for large screens) -->
+ {{ partial "share-sidebar.html" . }}
+
+ <!-- Article Body -->
+ <div class="article-body container-narrow">
+ {{ .Content }}
+ </div>
+
+ <!-- Article Footer Nav -->
+ {{ $section := .Site.GetPage .Section }}
+ {{ if $section }}
+ {{ $prevPage := .PrevInSection }}
+ {{ $nextPage := .NextInSection }}
+ {{ if or $prevPage $nextPage }}
+ <nav class="article-footer-nav">
+ {{ if $prevPage }}
+ <a href="{{ $prevPage.RelPermalink }}" class="nav-prev">
+ <span class="nav-label">← Previous</span>
+ <span class="nav-title">{{ $prevPage.Title }}</span>
+ </a>
+ {{ end }}
+ {{ if $nextPage }}
+ <a href="{{ $nextPage.RelPermalink }}" class="nav-next">
+ <span class="nav-label">Next →</span>
+ <span class="nav-title">{{ $nextPage.Title }}</span>
+ </a>
+ {{ end }}
+ </nav>
+ {{ end }}
+ {{ end }}
+</article>