From dec11203de4ad0877f4cb0fec4c0305c4fccca8e Mon Sep 17 00:00:00 2001 From: Martijn Engler Date: Tue, 23 Jan 2024 10:28:44 +0100 Subject: Use hugo.toml instead of config.toml (#74) * Use hugo.toml instead of config.toml Use the file hugo.toml in both the README.md and the exampleSite, since Hugo will look for this file first. The current instructions (using config.toml) in a new Hugo site (that has a hugo.toml-file) means that the site doesn't work, or the theme is not activated. Note that this is a breaking change for sites running on older versions. (But v0.110.0 was released almost a year ago.) Relevant Hugo commit: https://github.com/gohugoio/hugo/commit/f38a2fbd2e4de7f095a833b448cb8bc053955ce2 * Require `hugo v0.110.0` > Make hugo.toml the new config.toml see https://github.com/gohugoio/hugo/releases/tag/v0.110.0 --------- Co-authored-by: Jan Raasch <425211+janraasch@users.noreply.github.com> --- exampleSite/config.toml | 52 ------------------------------------------------- exampleSite/hugo.toml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 52 deletions(-) delete mode 100644 exampleSite/config.toml create mode 100644 exampleSite/hugo.toml (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index d67e845..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,52 +0,0 @@ -# Base URL used when generating links to your pages -# Set to the URL for your site -baseURL = "https://example.com" - -# The name of this wonderful theme ;-). -theme = 'hugo-bearblog' - -# Basic metadata configuration for your blog. -title = "Hugo ʕ•ᴥ•ʔ Bear Blog" -author = "Jane Doe" -copyright = "Copyright © 2020, Jane Doe." -languageCode = "en-US" - -# Generate a nice robots.txt for SEO -enableRobotsTXT = true - -# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/. -disableKinds = ["taxonomy"] -ignoreErrors = ["error-disable-taxonomy"] -[permalinks] - blog = "/:slug/" - tags = "/blog/:slug" - -[params] - # The "description" of your website. This is used in the meta data of your generated html. - description = "Hugo + Bear = :heart:" - - # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. - # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder. - favicon = "images/favicon.png" - - # These "images" are used for the structured data templates. This will show up, when - # services like Twitter or Slack want to generate a preview of a link to your site. - # See https://gohugo.io/templates/internal#twitter-cards and - # https://gohugo.io/templates/internal#open-graph. - images = ["images/share.png"] - - # Another "title" :-). This one is used as the site_name on the Hugo's internal - # opengraph structured data template. - # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. - title = "Hugo ʕ•ᴥ•ʔ Bear" - - # This theme will, by default, inject a made-with-line at the bottom of the page. - # You can turn it off, but we would really appreciate if you don’t :-). - # hideMadeWithLine = true - - # By default, this theme displays dates with a format like "02 Jan, 2006", but - # you can customize it by setting the `dateFormat` param in your site's config - # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/) - # for details. An example TOML config that uses [ISO - # 8601](https://en.wikipedia.org/wiki/ISO_8601) format: - # dateFormat = "2006-01-02" diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml new file mode 100644 index 0000000..d67e845 --- /dev/null +++ b/exampleSite/hugo.toml @@ -0,0 +1,52 @@ +# Base URL used when generating links to your pages +# Set to the URL for your site +baseURL = "https://example.com" + +# The name of this wonderful theme ;-). +theme = 'hugo-bearblog' + +# Basic metadata configuration for your blog. +title = "Hugo ʕ•ᴥ•ʔ Bear Blog" +author = "Jane Doe" +copyright = "Copyright © 2020, Jane Doe." +languageCode = "en-US" + +# Generate a nice robots.txt for SEO +enableRobotsTXT = true + +# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/. +disableKinds = ["taxonomy"] +ignoreErrors = ["error-disable-taxonomy"] +[permalinks] + blog = "/:slug/" + tags = "/blog/:slug" + +[params] + # The "description" of your website. This is used in the meta data of your generated html. + description = "Hugo + Bear = :heart:" + + # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. + # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder. + favicon = "images/favicon.png" + + # These "images" are used for the structured data templates. This will show up, when + # services like Twitter or Slack want to generate a preview of a link to your site. + # See https://gohugo.io/templates/internal#twitter-cards and + # https://gohugo.io/templates/internal#open-graph. + images = ["images/share.png"] + + # Another "title" :-). This one is used as the site_name on the Hugo's internal + # opengraph structured data template. + # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. + title = "Hugo ʕ•ᴥ•ʔ Bear" + + # This theme will, by default, inject a made-with-line at the bottom of the page. + # You can turn it off, but we would really appreciate if you don’t :-). + # hideMadeWithLine = true + + # By default, this theme displays dates with a format like "02 Jan, 2006", but + # you can customize it by setting the `dateFormat` param in your site's config + # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/) + # for details. An example TOML config that uses [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format: + # dateFormat = "2006-01-02" -- cgit v1.2.3