From 3bdfcb46cf2095c907f938369d5fd59b1c53f6a9 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Fri, 17 Sep 2021 12:23:31 +0200 Subject: [PATCH] config: update + remove unused params --- config/_default/config.toml | 65 +++++++++++------------------------ config/_default/markup.toml | 29 ++++++++++++++++ config/_default/params.toml | 7 ++-- config/next/config.toml | 1 - config/production/config.toml | 1 - layouts/rss.xml | 2 +- 6 files changed, 52 insertions(+), 53 deletions(-) create mode 100644 config/_default/markup.toml diff --git a/config/_default/config.toml b/config/_default/config.toml index 68bc9b92..57483ee7 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -12,55 +12,32 @@ rssLimit = 10 # add redirects/headers [outputs] -home = ["HTML", "RSS", "REDIRECTS", "HEADERS"] + home = ["HTML", "RSS", "REDIRECTS", "HEADERS"] # remove .{ext} from text/netlify [mediaTypes."text/netlify"] -suffixes = [""] -delimiter = "" + suffixes = [""] + delimiter = "" # add output format for netlify _redirects [outputFormats.REDIRECTS] -mediatype = "text/netlify" -baseName = "_redirects" -isPlainText = true -notAlternative = true + mediatype = "text/netlify" + baseName = "_redirects" + isPlainText = true + notAlternative = true # add output format for netlify _headers [outputFormats.HEADERS] -mediatype = "text/netlify" -baseName = "_headers" -isPlainText = true -notAlternative = true + mediatype = "text/netlify" + baseName = "_headers" + isPlainText = true + notAlternative = true [caches] [caches.getjson] dir = ":cacheDir/:project" maxAge = "10s" -[markup] - [markup.goldmark] - [markup.goldmark.extensions] - linkify = false - [markup.goldmark.parser] - autoHeadingID = true - autoHeadingIDType = "github" - [markup.goldmark.parser.attribute] - block = true - title = true - [markup.goldmark.renderer] - unsafe = true - [markup.highlight] - codeFences = false - guessSyntax = false - hl_Lines = "" - lineNoStart = 1 - lineNos = false - lineNumbersInTable = true - noClasses = false - style = "dracula" - tabWidth = 4 - [sitemap] changefreq = "monthly" filename = "sitemap.xml" @@ -76,14 +53,12 @@ notAlternative = true keepWhitespace = false [related] -threshold = 80 -includeNewer = true -toLower = false - [[related.indices]] - name = "categories" - weight = 100 - [[related.indices]] - name = "date" - weight = 10 - - + threshold = 80 + includeNewer = true + toLower = false + [[related.indices]] + name = "categories" + weight = 100 + [[related.indices]] + name = "date" + weight = 10 diff --git a/config/_default/markup.toml b/config/_default/markup.toml new file mode 100644 index 00000000..2880e305 --- /dev/null +++ b/config/_default/markup.toml @@ -0,0 +1,29 @@ +defaultMarkdownHandler = "goldmark" + +[goldmark] + [goldmark.extensions] + linkify = false + [goldmark.parser] + autoHeadingID = true + autoHeadingIDType = "github" + [goldmark.parser.attribute] + block = true + title = true + [goldmark.renderer] + unsafe = true + +[highlight] + codeFences = false + guessSyntax = false + hl_Lines = "" + lineNoStart = 1 + lineNos = false + lineNumbersInTable = true + noClasses = false + style = "dracula" + tabWidth = 4 + +[tableOfContents] + endLevel = 3 + ordered = false + startLevel = 2 diff --git a/config/_default/params.toml b/config/_default/params.toml index 3f344191..a72855f8 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -9,7 +9,6 @@ description = "Hyas is a Hugo starter helping you build modern websites that are ## Open Graph images = ["hyas.png"] ogLocale = "en_US" -domainTLD = "gethyas.com" titleHome = "Hyas Hugo Starter" ## Twitter Cards @@ -34,10 +33,6 @@ schemaImageHeight = 640 schemaTwitter = "https://twitter.com/gethyas" schemaLinkedIn = "" schemaGitHub = "https://github.com/h-enk/hyas" -schemaSection = "blog" - -## Sitelinks Search Box -siteLinksSearchBox = false ## Chrome Browser themeColor = "#fff" @@ -51,6 +46,8 @@ lqipWidth = "20x" # Footer footer = "Powered by Netlify, Hugo, and Hyas" + +# Feed copyRight = "Copyright (c) 2020-2021 Henk Verlinde" # Alert diff --git a/config/next/config.toml b/config/next/config.toml index 9c5e90da..e69de29b 100644 --- a/config/next/config.toml +++ b/config/next/config.toml @@ -1 +0,0 @@ -canonifyURLs = false diff --git a/config/production/config.toml b/config/production/config.toml index 9c5e90da..e69de29b 100644 --- a/config/production/config.toml +++ b/config/production/config.toml @@ -1 +0,0 @@ -canonifyURLs = false diff --git a/layouts/rss.xml b/layouts/rss.xml index 72ac5647..fed409e6 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -7,7 +7,7 @@ Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.copyRight }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{ with .OutputFormats.Get "RSS" }}