wompmacho 9df0017182 updates to try and fix partial includes issue
1. Restored resume.md: Left exactly as it was.
2. Configured hugo.toml Mounts: I mounted /srv/configs into the virtual assets namespace. This
    securely gives Hugo access to those files as raw static resources.
3. Updated include Partial: I rewrote the shortcode partial (layouts/partials/include.html) to:
    * Intercept absolute paths starting with /srv/configs/, map them to configs/..., and retrieve
        their raw text content using resources.Get.
    * Intercept paths starting with /srv/docs/private/, look them up as a Page, and use .RawContent
        instead of .Content (which prevents Hugo from wrapping your Markdown in HTML <p> tags when
        injecting it into your code blocks).
    * Strip any YAML frontmatter from the raw content using a regex replaceRE block.
2026-03-29 00:15:32 +00:00
2026-03-28 23:47:44 +00:00

Project: Hugo Documentation Framework (Blowfish)

This repository manages the Hugo build environment (config, themes, and layouts) for both the Public and Private Wikis.

🏗️ Architecture

To allow for seamless Dev vs. Prod workflows, the architecture is split into three repositories:

  1. Framework (/srv/dev/hugo/wiki): This repository (hugo-framework). Contains the Hugo engine, themes (Blowfish), and the default configuration.
  2. Public Content (/srv/docs/public): A separate repository (docs-public).
  3. Private Content (/srv/docs/private): A separate repository (docs-private).

Dynamic Configuration Merging: The Framework defines the base styling in config/_default/params.toml. However, the Content repositories can dynamically override:

  • Menus: By providing a config/_default/menus.en.toml file.
  • Theme Settings (Edit Links): Injected via Environment Variables (HUGO_PARAMS_ARTICLE_EDITURL) during the CI/CD pipeline to avoid destroying the framework's default arrays.

To write documentation with real-time previews, you use symbolic links on your host machine:

  1. Establish Symlinks:
    cd /srv/dev/hugo/wiki
    rm -rf content static
    ln -s /srv/docs/public content
    ln -s /srv/docs/public/static static
    
  2. Preview Changes:
    hugo server --bind 0.0.0.0 --appendPort=false --baseURL="/"
    

🚀 CI/CD Pipeline

Deployment is fully automated through Gitea Actions stored in the Content repositories (e.g., docs-public/.gitea/workflows/deploy.yaml).

During a build, the Runner dynamically clones this Framework via HTTPS, injects the Markdown files from the triggering repository, applies the editURL overrides, builds the site, and deploys directly into the Nginx web server volume (/srv/caddy/sites).

(Note: The volume name /srv/caddy is a legacy name; the servers actually running are lightweight nginx:alpine containers defined in gitea/docker-compose.yaml).

Description
No description provided
Readme MIT 3.3 MiB
Languages
HTML 94.9%
CSS 5.1%