From 75dc3c926951ecb33e0a195543018994f66d95db Mon Sep 17 00:00:00 2001 From: Sped0n Date: Fri, 3 Nov 2023 09:37:53 +0800 Subject: [PATCH] chore(hugo.toml): update baseURL, themesdir, theme, and title in hugo.toml feat(hugo.toml): enable robots.txt and set defaultContentLanguage to 'en' in hugo.toml chore(markup.toml): update goldmark configuration in markup.toml chore(params.toml): update description and bundled fields in params.toml chore(sitemap.toml): update changefreq, filename, and priority in sitemap.toml --- exampleSite/config/_default/hugo.toml | 15 +++++++++++++++ exampleSite/config/_default/markup.toml | 1 + exampleSite/config/_default/params.toml | 7 ++++--- exampleSite/config/_default/sitemap.toml | 1 + 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 87dd0a5..109cfc3 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -1,4 +1,19 @@ +# your website url baseURL = 'https://www.example.com/' +# path to theme directory themesdir = '../..' +# theme name theme = 'Bridget' +# website title +title = 'bridget' +# don't touch this disableKinds = ["section", "taxonomy", "term", "home"] +# robots.txt +enableRobotsTXT = true +# available options +# * en (powered by Geist) +# * zh-sg zh-cn (powered by Noto Sans SC) +# * zh-hk zh-tw zh-mo (powered by Noto Sans TC) +# * ja (powered by Noto Sans JP) +# * ko (powered by Noto Sans KR) +defaultContentLanguage = 'en' diff --git a/exampleSite/config/_default/markup.toml b/exampleSite/config/_default/markup.toml index c9936a8..22a41b3 100644 --- a/exampleSite/config/_default/markup.toml +++ b/exampleSite/config/_default/markup.toml @@ -1,3 +1,4 @@ +# don't touch this file [goldmark] [goldmark.extensions] definitionList = true diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index e0a952e..c050aee 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,5 +1,6 @@ -# website title -title = "Bridget" +# description of the site (will be placed in meta) +description = "Bridget is a minimal Hugo theme designed for photographers / visual artists." # use bundled js and css -# if you want to build the js and css from scratch, set this to false and run `npm install` and `npm run build` +# * if you want to build the js and css from scratch, set this to false and run `npm install` and `npm run build` +# * tldr: set this to false if you want to edit the js and css bundled = false diff --git a/exampleSite/config/_default/sitemap.toml b/exampleSite/config/_default/sitemap.toml index 549a8be..b042a5c 100644 --- a/exampleSite/config/_default/sitemap.toml +++ b/exampleSite/config/_default/sitemap.toml @@ -1,3 +1,4 @@ +# please refer to https://gohugo.io/templates/sitemap-template/#configuration changefreq = "weekly" filename = "sitemap.xml" priority = 0.5