From db7d5e3887941c8ebae413624c36d7bfe9b74149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 20 Dec 2022 17:14:53 +0100 Subject: [PATCH] config: Reformat --- .../build/site/config.toml | 181 +++++++++--------- 1 file changed, 89 insertions(+), 92 deletions(-) diff --git a/cmd/hugothemesitebuilder/build/site/config.toml b/cmd/hugothemesitebuilder/build/site/config.toml index 4c6767b..17bf21a 100644 --- a/cmd/hugothemesitebuilder/build/site/config.toml +++ b/cmd/hugothemesitebuilder/build/site/config.toml @@ -1,129 +1,126 @@ -baseurl = "https://themes.gohugo.io/" -languageCode = "en-us" -title = "Hugo Themes" +baseurl = "https://themes.gohugo.io/" +languageCode = "en-us" +title = "Hugo Themes" googleAnalytics = "G-MBZGKNMDWC" -disableKinds = ["taxonomyTerm"] +disableKinds = ["taxonomyTerm"] [security] -enableInlineShortcodes = false -[security.exec] -allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] -osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] -[security.funcs] -getenv = ['^HUGO_', 'REPOSITORY_URL', 'BRANCH'] -[security.http] -# Disallow all HTTP for now. + enableInlineShortcodes = false + [security.exec] + allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] + osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] + [security.funcs] + getenv = ['^HUGO_', 'REPOSITORY_URL', 'BRANCH'] + [security.http] + # Disallow all HTTP for now. [module] -[module.hugoVersion] -min = "0.56.0" -[[module.imports]] -path="github.com/gohugoio/hugoThemesSite" + [module.hugoVersion] + min = "0.56.0" + [[module.imports]] + path = "github.com/gohugoio/hugoThemesSite" [markup.goldmark.renderer] - unsafe= true + unsafe = true [blackfriday] -plainIdAnchors=true -config = "config-tpl-base.toml" + plainIdAnchors = true + config = "config-tpl-base.toml" [outputs] -home = [ "HTML", "RSS", "REDIR", "HEADERS" ] + home = ["HTML", "RSS", "REDIR", "HEADERS"] [mediaTypes] -[mediaTypes."text/netlify"] -suffixes = [ "" ] -delimiter = "" + [mediaTypes."text/netlify"] + suffixes = [""] + 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 [related] -threshold = 80 -includeNewer = true -toLower = false + threshold = 80 + includeNewer = true + toLower = false -[[related.indices]] -name = "tags" -weight = 100 -[[related.indices]] -name = "date" -weight = 10 -pattern = "2006" + [[related.indices]] + name = "tags" + weight = 100 + [[related.indices]] + name = "date" + weight = 10 + pattern = "2006" [social] -twitter = "GoHugoIO" + twitter = "GoHugoIO" [caches] -[caches.images] -dir = ":cacheDir" -# 30 days. -maxAge = "720h" + [caches.images] + dir = ":cacheDir" + # 30 days. + maxAge = "720h" [imaging] -resampleFilter = "CatmullRom" + resampleFilter = "CatmullRom" -# Defatult JPEG quality setting. Default is 75. -quality = 75 + # Defatult JPEG quality setting. Default is 75. + quality = 75 -anchor = "smart" + anchor = "smart" [params] -github_repo = "https://github.com/spf13/hugothemes" -gitter = "https://gitter.im/spf13/hugo" -forum = "https://discourse.gohugo.io/" -#This array is meant for disabling the Homepage button of a theme. -noHomePage = ["hugo-theme-novela"] - + github_repo = "https://github.com/spf13/hugothemes" + gitter = "https://gitter.im/spf13/hugo" + forum = "https://discourse.gohugo.io/" + #This array is meant for disabling the Homepage button of a theme. + noHomePage = ["hugo-theme-novela"] # GLOBAL = IF ANYTHING CHANGES BELOW UPDATE MAIN, DOCS, THEMES - [[menu.global]] - name = "News" - weight = 1 - identifier = "news" - url = "https://gohugo.io/news/" +[[menu.global]] + name = "News" + weight = 1 + identifier = "news" + url = "https://gohugo.io/news/" - [[menu.global]] - name = "Docs" - weight = 10 - identifier = "docs" - url = "https://gohugo.io/documentation/" +[[menu.global]] + name = "Docs" + weight = 10 + identifier = "docs" + url = "https://gohugo.io/documentation/" +[[menu.global]] + name = "Themes" + weight = 15 + identifier = "themes" + url = "https://themes.gohugo.io/" - [[menu.global]] - name = "Themes" - weight = 15 - identifier = "themes" - url = "https://themes.gohugo.io/" +[[menu.global]] + name = "Showcase" + weight = 20 + identifier = "showcase" + url = "https://gohugo.io/showcase/" - [[menu.global]] - name = "Showcase" - weight = 20 - identifier = "showcase" - url = "https://gohugo.io/showcase/" +[[menu.global]] + name = "Community" + weight = 100 + post = "external" + identifier = "community" + url = "https://discourse.gohugo.io/" - [[menu.global]] - name = "Community" - weight = 100 - post = "external" - identifier = "community" - url = "https://discourse.gohugo.io/" - - - [[menu.global]] - name = "GitHub" - weight = 200 - identifier = "github" - post = "external" - url = "https://github.com/gohugoio/hugo" \ No newline at end of file +[[menu.global]] + name = "GitHub" + weight = 200 + identifier = "github" + post = "external" + url = "https://github.com/gohugoio/hugo"