Files
hugo-framework/config/_default/hugo.toml
wompmacho 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

52 lines
1.1 KiB
TOML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://nunocoracao.github.io/blowfish/docs/getting-started/
theme = ["hugo-admonitions", "blowfish"]
baseURL = "https://wiki.wompmacho.com/"
defaultContentLanguage = "en"
relativeURLs = true
enableRobotsTXT = true
summaryLength = 5
buildDrafts = true
buildFuture = true
enableEmoji = true
# googleAnalytics = "G-XXXXXXXXX"
[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"
[sitemap]
changefreq = 'daily'
filename = 'sitemap.xml'
priority = 0.5
[outputs]
home = ["HTML", "RSS", "JSON"]
[frontmatter]
# Hugo will check for 'lastmod' in the file first,
# then the Git commit date, then the 'date' field.
lastmod = ["lastmod", ":git", "date"]
# Required if you want to use the Git commit date automatically
enableGitInfo = true
[markup.tableOfContents]
endLevel = 3
ordered = false
startLevel = 2
[module]
[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "/srv/docs/private"
target = "content/private"