From 25b879bd290528adfb47b0042749305a6a408800 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Apr 2026 09:52:36 +0200 Subject: fix: resolve matrix rain opacity, menu styling, and featured articles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- layouts/home.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'layouts') 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" . }}
-
Latest
- {{ $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 }}
- {{ 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 }} +
Featured
+ {{ 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 }}
Latest
{{ else }}
Latest
{{ 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 }}
-- cgit v1.2.3