From 1c1122f068032d0f9d11a86d5294cd872a4dda64 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 16:18:41 +0200 Subject: Set up Tailwind CSS build pipeline and bilingual homepage content - Install and configure Tailwind CSS with tailwind.config.js - Create npm scripts for building Tailwind (build/watch) - Add .gitignore to exclude node_modules and build artifacts - Create bilingual homepage content (content/it/_index.md, content/en/_index.md) - Update baseof.html to use compiled main.min.css - Fix .ByDate deprecation in list.html template (use sort function) - Fix main.css pre element to support rgba with opacity - Homepage now displays with full dark/light theme styling Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts/_default/list.html') diff --git a/themes/danix-xyz-hacker/layouts/_default/list.html b/themes/danix-xyz-hacker/layouts/_default/list.html index 6baeaca..8d2c1ef 100644 --- a/themes/danix-xyz-hacker/layouts/_default/list.html +++ b/themes/danix-xyz-hacker/layouts/_default/list.html @@ -11,12 +11,12 @@ {{ $unpinned := where .Pages "Params.pinned" false }} - {{ range ($pinned | .ByDate.Reverse) }} + {{ range (sort $pinned "Date" "desc") }} {{ partial "article-list-item.html" . }} {{ end }} - {{ range ($unpinned | .ByDate.Reverse) }} + {{ range (sort $unpinned "Date" "desc") }} {{ partial "article-list-item.html" . }} {{ end }} -- cgit v1.2.3