67 lines
1.4 KiB
TOML
67 lines
1.4 KiB
TOML
# -- Site Configuration --
|
|
|
|
theme = ["hugo-admonitions", "blowfish"]
|
|
baseURL = "https://wiki.wompmacho.com/"
|
|
defaultContentLanguage = "en"
|
|
relativeURLs = true
|
|
|
|
enableRobotsTXT = true
|
|
summaryLength = 5
|
|
|
|
buildDrafts = true
|
|
buildFuture = true
|
|
enableEmoji = true
|
|
enableGitInfo = true
|
|
|
|
[taxonomies]
|
|
tag = "tags"
|
|
category = "categories"
|
|
author = "authors"
|
|
series = "series"
|
|
|
|
[sitemap]
|
|
changefreq = "daily"
|
|
filename = "sitemap.xml"
|
|
priority = 0.5
|
|
|
|
[outputs]
|
|
home = ["HTML", "RSS", "JSON"]
|
|
|
|
[frontmatter]
|
|
# Order of priority for the .Lastmod date
|
|
lastmod = [":git", ":fileModTime", "lastmod", "date", "publishDate"]
|
|
|
|
[markup.tableOfContents]
|
|
endLevel = 3
|
|
ordered = false
|
|
startLevel = 2
|
|
|
|
[module]
|
|
[[module.mounts]]
|
|
source = "content"
|
|
target = "content"
|
|
[[module.mounts]]
|
|
source = "/srv/docs/private"
|
|
target = "content/private"
|
|
[[module.mounts]]
|
|
source = "/srv/docs/public/projects/hugo"
|
|
target = "content/public/projects/hugo"
|
|
[[module.mounts]]
|
|
source = "assets"
|
|
target = "assets"
|
|
[[module.mounts]]
|
|
source = "/srv/configs"
|
|
target = "assets/configs"
|
|
[[module.mounts]]
|
|
source = "/srv/dev/hugo/wiki"
|
|
target = "assets/dev/hugo/wiki"
|
|
|
|
[security]
|
|
[security.funcs]
|
|
readFile = [".*"]
|
|
"os.Stat" = [".*"]
|
|
"os.ReadDir" = [".*"]
|
|
[security.exec]
|
|
# Hugo must be allowed to run the asciidoctor binary
|
|
allow = ['^git$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
|