From e83141f88dbec930b8039cb73d676cec6416c59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 17 Jan 2023 12:12:37 +0100 Subject: [PATCH] Format config --- hugo.toml | 124 +++++++++++++++++++++++++++--------------------------- 1 file changed, 63 insertions(+), 61 deletions(-) diff --git a/hugo.toml b/hugo.toml index 731233310..da6bd9534 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,85 +1,87 @@ -baseURL = "https://gohugo.io/" +# This his the main configuration file. There are also environment specific configuration stored in the /config directory. + +baseURL = "https://gohugo.io/" defaultContentLanguage = "en" -enableEmoji = true -googleAnalytics = "G-MBZGKNMDWC" -ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] -languageCode = "en-us" -paginate = 100 -pluralizeListTitles = false -timeZone = "Europe/Oslo" -title = "Hugo" +enableEmoji = true +googleAnalytics = "G-MBZGKNMDWC" +ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] +languageCode = "en-us" +paginate = 100 +pluralizeListTitles = false +timeZone = "Europe/Oslo" +title = "Hugo" # We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below). disableAliases = true [minify] -[minify.tdewolff] -[minify.tdewolff.html] -keepWhitespace = true + [minify.tdewolff] + [minify.tdewolff.html] + keepWhitespace = true [module] -[module.hugoVersion] -min = "0.56.0" -[[module.imports]] -path = "github.com/gohugoio/gohugoioTheme" + [module.hugoVersion] + min = "0.56.0" + [[module.imports]] + path = "github.com/gohugoio/gohugoioTheme" [outputs] -home = [ "HTML", "RSS", "REDIR", "HEADERS" ] -section = [ "HTML", "RSS"] + home = ["HTML", "RSS", "REDIR", "HEADERS"] + section = ["HTML", "RSS"] [mediaTypes] -[mediaTypes."text/netlify"] -delimiter = "" + [mediaTypes."text/netlify"] + delimiter = "" [outputFormats] -[outputFormats.REDIR] -mediatype = "text/netlify" -baseName = "_redirects" -isPlainText = true -notAlternative = true -[outputFormats.HEADERS] -mediatype = "text/netlify" -baseName = "_headers" -isPlainText = true -notAlternative = true + [outputFormats.REDIR] + mediatype = "text/netlify" + baseName = "_redirects" + isPlainText = true + notAlternative = true + [outputFormats.HEADERS] + mediatype = "text/netlify" + baseName = "_headers" + isPlainText = true + notAlternative = true [caches] -[caches.getjson] -dir = ":cacheDir/:project" -maxAge = -1 -[caches.getcsv] -dir = ":cacheDir/:project" -maxAge = -1 -[caches.images] -dir = ":cacheDir/images" -maxAge = "1440h" -[caches.assets] -dir = ":resourceDir/_gen" -maxAge = -1 + [caches.getjson] + dir = ":cacheDir/:project" + maxAge = -1 + [caches.getcsv] + dir = ":cacheDir/:project" + maxAge = -1 + [caches.images] + dir = ":cacheDir/images" + maxAge = "1440h" + [caches.assets] + dir = ":resourceDir/_gen" + maxAge = -1 [related] -threshold = 80 -includeNewer = true -toLower = false -[[related.indices]] -name = "keywords" -weight = 100 -[[related.indices]] -name = "date" -weight = 10 -pattern = "2006" + threshold = 80 + includeNewer = true + toLower = false + [[related.indices]] + name = "keywords" + weight = 100 + [[related.indices]] + name = "date" + weight = 10 + pattern = "2006" [social] -twitter = "GoHugoIO" + twitter = "GoHugoIO" [imaging] -# See https://github.com/disintegration/imaging -# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots. -# Note that you can also set this per image processing. -resampleFilter = "CatmullRom" -# Default JPEG quality setting. Default is 75. -quality = 75 -anchor = "smart" + # See https://github.com/disintegration/imaging + # CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots. + # Note that you can also set this per image processing. + resampleFilter = "CatmullRom" + # Default JPEG quality setting. Default is 75. + quality = 75 + anchor = "smart" [taxonomies] -category = "categories" + category = "categories"