From ac31ddbd1435412136ea6ef4e5c1f304233c8809 Mon Sep 17 00:00:00 2001 From: wompmacho Date: Wed, 25 Mar 2026 03:26:54 +0000 Subject: [PATCH] Fix: Restore Blowfish formatting and inject dynamic edit links via environment variables --- .gitea/workflows/deploy.yaml | 4 ++-- config/_default/menus.en.toml | 24 +++++++++++++++++------- config/_default/params.toml | 6 ------ 3 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 config/_default/params.toml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 82c7512..7cbb27e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -49,8 +49,8 @@ jobs: # Clean git metadata rm -rf content/.git content/.gitea - # Build the site - hugo --minify --destination public + # Build the site using dynamic environment variable overrides + HUGO_PARAMS_ARTICLE_EDITURL="https://git.wompmacho.com/wompmacho/docs-public/src/branch/main" hugo --minify --destination public # Deploy to Caddy mkdir -p /deploy/wiki diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml index 951f1fa..5cae69f 100644 --- a/config/_default/menus.en.toml +++ b/config/_default/menus.en.toml @@ -1,16 +1,26 @@ # This overrides the framework's default menu for the public site. [[main]] - name = "Projects" - pageRef = "/projects" + name = "projects" + pageRef = "projects" weight = 10 [[main]] - name = "Posts" - pageRef = "/posts" + name = "posts" + pageRef = "posts" weight = 20 [[main]] - name = "Stream" - pageRef = "/stream" - weight = 30 \ No newline at end of file + name = "stream" + pageRef = "stream" + weight = 30 + +[[subnavigation]] + name = "lab" + pageRef = "lab_setup" + weight = 10 + +[[subnavigation]] + name = "resume" + pageRef = "resume" + weight = 20 \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml deleted file mode 100644 index 0c8ac4b..0000000 --- a/config/_default/params.toml +++ /dev/null @@ -1,6 +0,0 @@ -# This dynamically overrides the framework's article settings for the public site. -[article] - showEdit = true - showEditURL = true - editURL = "https://git.wompmacho.com/wompmacho/docs-public/src/branch/main" - editAppendPath = true \ No newline at end of file