From f0c6306e6c3c10683e7e0faa5d79bf8106bab2f3 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Fri, 20 Aug 2021 17:20:20 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20min=20Hugo=20version=20to?= =?UTF-8?q?=20module.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- config/_default/module.toml | 3 +++ exampleSite/content/docs/installation.md | 2 +- theme.toml | 2 -- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 config/_default/module.toml diff --git a/README.md b/README.md index 7768bed7..729e4369 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Then continue to [set up the theme configuration files](#set-up-theme-configurat ### Set up theme configuration files -In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. This will ensure you have all the correct theme settings and will enable you to easily customise the theme. +In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. If you installed using Hugo Modules, you should not copy the `module.toml` file! This will ensure you have all the correct theme settings and will enable you to easily customise the theme. Depending on how you installed the theme you will find the theme config files in different places: diff --git a/config/_default/module.toml b/config/_default/module.toml new file mode 100644 index 00000000..6a8e43fa --- /dev/null +++ b/config/_default/module.toml @@ -0,0 +1,3 @@ +[hugoVersion] + extended = false + min = "0.86.1" diff --git a/exampleSite/content/docs/installation.md b/exampleSite/content/docs/installation.md index f796d489..736c23d8 100644 --- a/exampleSite/content/docs/installation.md +++ b/exampleSite/content/docs/installation.md @@ -79,7 +79,7 @@ Then continue to [set up the theme configuration files](#set-up-theme-configurat ## Set up theme configuration files -In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. This will ensure you have all the correct theme settings and will enable you to easily customise the theme. +In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. If you installed using Hugo Modules, you should not copy the `module.toml` file! This will ensure you have all the correct theme settings and will enable you to easily customise the theme. Depending on how you installed the theme you will find the theme config files in different places: diff --git a/theme.toml b/theme.toml index 4e372ac8..a3e69609 100644 --- a/theme.toml +++ b/theme.toml @@ -5,8 +5,6 @@ license = "MIT" licenselink = "https://github.com/jpanther/congo/blob/master/LICENSE" description = "A simple, lightweight theme for Hugo built with Tailwind CSS." -min_version = "0.86.1" - homepage = "https://github.com/jpanther/congo/" demosite = "https://jpanther.github.io/congo/"