From 8dd28e2a0934f0dc5df6d5ab7f3bdbb5553cf5f6 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 21 Jul 2026 21:19:12 +0200 Subject: Fix CSS in debugging This switches to Hugo modules to embed the simple.css file from the repository with the same name to the Hugo site. --- Makefile | 1 - config.toml | 3 +++ layouts/articles/list.html | 2 +- layouts/articles/single.html | 2 +- layouts/git/list.html | 2 +- layouts/git/single.html | 2 +- layouts/index.html | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 8ce3e8c..7f1079c 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ all: public public: hugo - cp simple.css/simple.css public/style.css debug: hugo server diff --git a/config.toml b/config.toml index a7dc594..da61d46 100644 --- a/config.toml +++ b/config.toml @@ -9,3 +9,6 @@ disableKinds = ["taxonomy", "term", "RSS"] endLevel = 6 ordered = false startLevel = 4 +[[module.mounts]] +source = "simple.css/simple.css" +target = "static/simple.css" diff --git a/layouts/articles/list.html b/layouts/articles/list.html index 72879ad..188357d 100644 --- a/layouts/articles/list.html +++ b/layouts/articles/list.html @@ -12,7 +12,7 @@ - + diff --git a/layouts/articles/single.html b/layouts/articles/single.html index 7df87e4..07193f2 100644 --- a/layouts/articles/single.html +++ b/layouts/articles/single.html @@ -12,7 +12,7 @@ - + diff --git a/layouts/git/list.html b/layouts/git/list.html index 39a2563..c9ba620 100644 --- a/layouts/git/list.html +++ b/layouts/git/list.html @@ -12,7 +12,7 @@ - + diff --git a/layouts/git/single.html b/layouts/git/single.html index 69c8a80..365833f 100644 --- a/layouts/git/single.html +++ b/layouts/git/single.html @@ -12,7 +12,7 @@ - + diff --git a/layouts/index.html b/layouts/index.html index bd36c83..2585dc7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,7 +12,7 @@ - + -- cgit v1.3.1