Commit Graph

13 Commits

Author SHA1 Message Date
32039ae42c disable lastmod 2026-04-01 06:31:27 +00:00
cd15701092 test git / lastmod 2026-04-01 06:23:31 +00:00
270be48baa test include 2026-03-29 08:21:56 +00:00
0b693a7d36 test 2026-03-29 08:08:16 +00:00
ddd2bf1530 idk 2026-03-29 07:52:34 +00:00
e7a9d14dc9 test without asciidoc 2026-03-29 07:42:08 +00:00
f4d819fadb enable asciidoctor exec 2026-03-29 07:17:39 +00:00
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
b7bb744d2f another test fix for includes 2026-03-28 23:47:44 +00:00
76a74bfd04 update to allow security on hugo to build in config in another dir 2026-03-28 23:31:46 +00:00
98a0e1eda9 fixing mount points and updating the include
partial

1. Mounted Configuration Directory: Added /srv/configs as a mount point in
      /srv/dev/hugo/wiki/config/_default/hugo.toml. This allows Hugo's readFile and fileExists functions to
      access your Docker Compose and other configuration files within the virtual filesystem.
2. Improved include Partial: Rewrote /srv/dev/hugo/wiki/layouts/partials/include.html with the following
      enhancements:
    * Path Mapping: It now automatically maps absolute paths like /srv/configs/... to the new configs/ mount
         and /srv/docs/private/... to the existing content/private/ mount.
    * Raw Content Support: If the included file is not a Markdown file (e.g., .yaml, .env, .sh), it now
         outputs the raw content instead of attempting to render it as Markdown. This ensures that your Docker
         Compose files are included exactly as they are when wrapped in a code block.
    * Robust Lookups: Added better path variation checking to handle both absolute and relative paths more
         gracefully.
2026-03-28 23:27:12 +00:00
09b40580b0 fixed the include partial and its configuration. The primary issues were the lack of frontmatter stripping and restricted file system access for files outside the Hugo project
root.

  Changes Made:

   1. Improved include.html Partial:
       * Page Support: Now uses .Site.GetPage first, allowing files to be included via Hugo's virtual filesystem (mounts).
       * Frontmatter Stripping: Added a regex-based stripper to ensure that if a raw file is read via readFile, its YAML/TOML frontmatter isn't rendered as text/horizontal rules.
       * Shortcode Processing: Confirmed that RenderString correctly processes shortcodes within included content.

   2. Updated Hugo Configuration:
       * Added [[module.mounts]] to /srv/dev/hugo/wiki/config/_default/hugo.toml to expose your private documentation directory (/srv/docs/private) to Hugo as content/private.
2026-03-28 04:22:29 +00:00
0eee1e0771 Finalize framework: Fix submodules and clean artifacts 2026-03-25 00:54:34 +00:00