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.
52 lines
1.1 KiB
TOML
52 lines
1.1 KiB
TOML
# -- 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"
|