Skip to content

Commit 628b8f0

Browse files
committed
prepare hugo.toml for cutoff-script (move parameters correctly to root-level)
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
1 parent de0aaef commit 628b8f0

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

config/_default/hugo.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ enableGitInfo = false
99
enableRobotsTXT = true
1010
languageCode = "en-US"
1111
rssLimit = 10
12-
summarylength = 20 # 70 (default)
12+
summarylength = 20
13+
14+
defaultContentVersionInSubdir = false
15+
defaultContentVersion = "legacy"
1316

1417
# Multilingual
1518
defaultContentLanguage = "en"
@@ -42,7 +45,6 @@ lastMod = false
4245
isPlainText = true
4346
notAlternative = true
4447

45-
# Add output format for section sitemap.xml
4648
[outputFormats.SITEMAP]
4749
mediaType = "application/xml"
4850
baseName = "sitemap"
@@ -93,15 +95,6 @@ lastMod = false
9395
quality = 85
9496
resampleFilter = "Lanczos"
9597

96-
# Versions (Hugo >= 0.153.0)
97-
# Render the default version into its own subdirectory (e.g., /0.1.0/ when defaultContentVersion = "0.1.0")
98-
defaultContentVersionInSubdir = false
99-
100-
# Default version is marked as "default" in version switcher. When holding a valid SemVer Hugo builds it into
101-
# the root of the website. BUT as long as we have non-SemVer version names, we have to rely on a "weight" attribute for every version.
102-
# Once we are on OCM v2, the latest release will become the new defaultContentVersion. "dev" will then get weight 1 to be listed first.
103-
defaultContentVersion = "legacy"
104-
10598
[versions]
10699
[versions."legacy"]
107100
weight = 1

0 commit comments

Comments
 (0)