diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-05 09:52:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-05 09:52:36 +0200 |
| commit | 25b879bd290528adfb47b0042749305a6a408800 (patch) | |
| tree | 22048174696683141c5eaf00a6a4aee34ce8a244 /layouts | |
| parent | 123b15e442a5a2bd2d73fb9d32cdded69a28f109 (diff) | |
| download | danixxyz-theme-25b879bd290528adfb47b0042749305a6a408800.tar.gz danixxyz-theme-25b879bd290528adfb47b0042749305a6a408800.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/home.html | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/layouts/home.html b/layouts/home.html index 4eed7ad..0beae1f 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -2,16 +2,28 @@ {{ partial "hero.html" . }} <div class="container feed-section"> - <div class="feed-label">Latest</div> - {{ $posts := where site.RegularPages "Type" "in" (slice "articles") }} {{ $posts := sort $posts "Params.date" "desc" }} - {{ $latest := first 3 $posts }} + + {{ $featured := where $posts "Params.featured" true }} + {{ $notFeatured := where $posts "Params.featured" "!=" true }} <div class="feed-grid"> - {{ range $latest }} - {{ $data := dict "title" .Title "type" .Params.type "description" .Summary "date" .Date "url" .RelPermalink "image" .Params.image "featured" .Params.featured }} - {{ partial "post-card.html" $data }} + {{ if $featured }} + <div class="feed-label">Featured</div> + {{ range first 1 $featured }} + {{ $data := dict "title" .Title "type" .Params.type "description" .Summary "date" .Date "url" .RelPermalink "image" .Params.image "featured" true }} + {{ partial "post-card.html" $data }} + {{ end }} + {{ end }} + + {{ if or $featured $notFeatured }} + {{ if $featured }}<div class="feed-label" style="margin-top: 2rem;">Latest</div>{{ else }}<div class="feed-label">Latest</div>{{ end }} + {{ $latest := first 3 $notFeatured }} + {{ range $latest }} + {{ $data := dict "title" .Title "type" .Params.type "description" .Summary "date" .Date "url" .RelPermalink "image" .Params.image "featured" false }} + {{ partial "post-card.html" $data }} + {{ end }} {{ end }} </div> |
