portails/config/_default/hugo.toml

87 lines
1.7 KiB
TOML
Raw Normal View History

2023-09-08 17:51:40 +02:00
title = "My Docs"
2024-04-19 20:53:32 +02:00
baseurl = "http://localhost/"
2023-04-18 15:10:33 +02:00
canonifyURLs = false
disableAliases = true
disableHugoGeneratorInject = true
# disableKinds = ["taxonomy", "term"]
enableEmoji = true
2024-01-11 20:50:52 +01:00
enableGitInfo = false
2023-04-18 15:10:33 +02:00
enableRobotsTXT = true
languageCode = "en-US"
paginate = 10
rssLimit = 10
summarylength = 20 # 70 (default)
# Multilingual
defaultContentLanguage = "en"
disableLanguages = ["de", "nl"]
2023-05-26 17:44:05 +02:00
defaultContentLanguageInSubdir = false
2023-04-18 15:10:33 +02:00
2024-01-11 20:50:52 +01:00
copyRight = "Copyright (c) 2020-2024 Hyas"
2023-06-09 19:17:11 +02:00
[build.buildStats]
enable = true
2023-04-18 15:10:33 +02:00
[outputs]
home = ["HTML", "RSS", "searchIndex"]
section = ["HTML", "RSS", "SITEMAP"]
[outputFormats.searchIndex]
mediaType = "application/json"
baseName = "search-index"
isPlainText = true
notAlternative = true
# Add output format for section sitemap.xml
[outputFormats.SITEMAP]
2024-01-11 20:50:52 +01:00
mediaType = "application/xml"
baseName = "sitemap"
isHTML = false
isPlainText = true
noUgly = true
rel = "sitemap"
2023-04-18 15:10:33 +02:00
[sitemap]
changefreq = "monthly"
filename = "sitemap.xml"
priority = 0.5
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
2024-01-11 20:50:52 +01:00
maxAge = -1 # "30m"
2023-04-18 15:10:33 +02:00
[taxonomies]
contributor = "contributors"
category = "categories"
tag = "tags"
[permalinks]
2023-05-23 14:55:30 +02:00
blog = "/blog/:slug/"
2023-09-08 17:51:40 +02:00
docs = "/docs/:sections[1:]/:slug/"
2023-05-23 14:55:30 +02:00
# docs = "/docs/1.0/:sections[1:]/:slug/"
2023-04-18 15:10:33 +02:00
[minify.tdewolff.html]
keepWhitespace = false
[related]
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
2024-01-11 20:50:52 +01:00
name = "categories"
weight = 100
2023-04-18 15:10:33 +02:00
[[related.indices]]
2024-01-11 20:50:52 +01:00
name = "tags"
weight = 80
2023-04-18 15:10:33 +02:00
[[related.indices]]
2024-01-11 20:50:52 +01:00
name = "date"
weight = 10
2023-06-09 19:17:11 +02:00
[imaging]
2024-01-11 20:50:52 +01:00
anchor = "Center"
2023-09-08 17:51:40 +02:00
bgColor = "#ffffff"
hint = "photo"
2024-01-11 20:50:52 +01:00
quality = 85
resampleFilter = "Lanczos"