Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -1,8 +1,6 @@
baseURL = "https://gohugo.io/"
defaultContentLanguage = "en"
enableEmoji = true
ignoreLogs = ["error-missing-instagram-accesstoken"]
languageCode = "en-us"
pluralizeListTitles = false
timeZone = "Europe/Oslo"
title = "Hugo"
@@ -10,105 +8,6 @@ title = "Hugo"
# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
disableAliases = true
[pagination]
pagerSize = 100
[services.googleAnalytics]
ID = 'G-MBZGKNMDWC'
[outputs]
home = ["html", "rss", "redir", "headers"]
section = ["html"]
page = ["html"]
taxonomy = ["html"]
term = ["html"]
[params]
description = "The worlds fastest framework for building websites"
ghrepo = "https://github.com/gohugoio/hugoDocs/"
[params.render_hooks.link]
errorLevel = 'warning' # ignore (default), warning, or error (fails the build)
[languages]
[languages.en]
languageName = "English"
weight = 1
[security]
enableInlineShortcodes = false
[security.funcs]
getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
[outputFormats]
[outputFormats.redir]
mediatype = "text/netlify"
baseName = "_redirects"
isPlainText = true
[outputFormats.headers]
mediatype = "text/netlify"
baseName = "_headers"
isPlainText = true
notAlternative = true
[markup]
[markup.highlight]
style = 'solarized-dark'
lineNumbersInTable = true
noClasses = false
wrapperClass = 'highlight not-prose'
[markup.goldmark.renderer]
hardWraps = false
unsafe = false
xhtml = false
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[markup.goldmark.extensions.passthrough]
enable = true
[markup.goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
[markup.goldmark.parser]
autoHeadingID = true
autoHeadingIDType = "github"
[markup.goldmark.parser.attribute]
block = true
title = true
[mediaTypes]
[mediaTypes."text/netlify"]
delimiter = ""
[module]
[module.hugoVersion]
min = "0.141.0"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
lang = 'en'
source = 'content/en'
target = 'content'
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/notwatching/hugo_stats.json"
disableWatch = true
[build]
[build.buildStats]
disableIDs = true
@@ -120,55 +19,153 @@ disableAliases = true
source = "(postcss|tailwind)\\.config\\.js"
target = "css"
[caches]
[caches.images]
dir = ":cacheDir/images"
maxAge = "1440h"
[caches.getresource]
dir = ':cacheDir/:project'
maxAge = "1h"
[cascade]
[cascade.params]
hide_in_this_section = true
show_publish_date = true
[cascade.target]
kind = 'page'
path = '{/news/**}'
[frontmatter]
date = ['date'] # do not add publishdate; it will affect page sorting
expiryDate = ['expirydate']
lastmod = [':git', 'lastmod', 'publishdate', 'date']
publishDate = ['publishdate', 'date']
[languages]
[languages.en]
languageCode = "en-US"
languageName = "English"
weight = 1
[markup]
[markup.goldmark]
[markup.goldmark.extensions]
[markup.goldmark.extensions.typographer]
disable = false
[markup.goldmark.extensions.passthrough]
enable = true
[markup.goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
[markup.goldmark.parser]
autoDefinitionTermID = true
[markup.goldmark.parser.attribute]
block = true
[markup.highlight]
lineNumbersInTable = false
noClasses = false
style = 'solarized-dark'
wrapperClass = 'highlight not-prose'
[mediaTypes]
[mediaTypes."text/netlify"]
delimiter = ""
[module]
[module.hugoVersion]
min = "0.144.0"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
lang = 'en'
source = 'content/en'
target = 'content'
[[module.mounts]]
disableWatch = true
source = "hugo_stats.json"
target = "assets/notwatching/hugo_stats.json"
[outputFormats]
[outputFormats.redir]
baseName = "_redirects"
isPlainText = true
mediatype = "text/netlify"
[outputFormats.headers]
baseName = "_headers"
isPlainText = true
mediatype = "text/netlify"
notAlternative = true
[outputs]
home = ["html", "rss", "redir", "headers"]
page = ["html"]
section = ["html"]
taxonomy = ["html"]
term = ["html"]
[params]
description = "The worlds fastest framework for building websites"
ghrepo = "https://github.com/gohugoio/hugoDocs/"
[params.render_hooks.link]
errorLevel = 'warning' # ignore (default), warning, or error (fails the build)
[related]
includeNewer = true
threshold = 80
toLower = true
[[related.indices]]
name = 'keywords'
weight = 1
[security]
[security.funcs]
getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$']
[server]
[[server.headers]]
for = "/*"
[server.headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer"
[[server.headers]]
for = "/**.{css,js}"
[minify]
[minify.tdewolff]
[minify.tdewolff.html]
keepSpecialComments = true
keepWhitespace = false
[services]
[services.googleAnalytics]
ID = 'G-MBZGKNMDWC'
[taxonomies]
category = 'categories'
######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES ########
[menus]
[[menus.global]]
name = 'News'
weight = 1
identifier = 'news'
name = 'News'
pageRef = '/news/'
weight = 1
[[menus.global]]
name = 'Docs'
weight = 5
identifier = 'docs'
name = 'Docs'
url = '/documentation/'
weight = 5
[[menus.global]]
name = 'Themes'
weight = 10
identifier = 'themes'
name = 'Themes'
url = 'https://themes.gohugo.io/'
weight = 10
[[menus.global]]
name = 'Community'
weight = 150
identifier = 'community'
name = 'Community'
post = 'external'
url = 'https://discourse.gohugo.io/'
weight = 150
[[menus.global]]
name = 'GitHub'
weight = 200
identifier = 'github'
name = 'GitHub'
post = 'external'
url = 'https://github.com/gohugoio/hugo'
weight = 200