From 8848c443a868d959839b5de120d41941a230e8d9 Mon Sep 17 00:00:00 2001
From: Andreas Deininger <andreas@deininger.net>
Date: Wed, 23 Aug 2023 10:32:49 +0000
Subject: [PATCH] Rename config.toml to hugo.toml

---
 .github/ISSUE_TEMPLATE/bug_report.md              |    2 
 .github/workflows/aws-deploy.yaml                 |    2 
 go.mod                                            |    3 +
 exampleSite/.gitignore                            |    1 
 exampleSite/content/docs/compose/search.md        |    2 
 exampleSite/.forestry/settings.yml                |    2 
 exampleSite/.github/workflows/agolia-update.yaml  |    2 
 /dev/null                                         |    0 
 exampleSite/content/blog/creating-a-new-theme.md  |   36 +++++++++---------
 .github/ISSUE_TEMPLATE/feature_request.md         |    2 
 exampleSite/netlify.toml                          |    8 ++++
 exampleSite/.github/workflows/aws-deploy.yaml     |    2 
 exampleSite/content/docs/compose/install-theme.md |    4 +-
 .github/workflows/agolia-update.yaml              |    2 
 exampleSite/hugo.toml                             |    0 
 exampleSite/content/docs/compose/customize.md     |    6 +-
 exampleSite/package.json                          |    2 
 17 files changed, 44 insertions(+), 32 deletions(-)

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index b802f31..66e5771 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -10,7 +10,7 @@
 
 - [] Read the README.md
 - [] Have the extended version of Hugo installed
-- [] Used the exampleSite's config.toml as a reference
+- [] Used the exampleSite's hugo.toml as a reference
 - [] If and when requested, I'll link my repo to make it easier to debug.
 
 __⚠️ NOTE:__ If the issue isn't easy to reproduce and its author(s) decline to provide reasonable accommodation to debug, the issue will be closed.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index 90bd84d..8cd23f0 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -10,7 +10,7 @@
 
 - [ ] Read the README.md
 - [ ] Have the extended version of Hugo installed
-- [ ] Used the exampleSite's config.toml as a reference
+- [ ] Used the exampleSite's hugo.toml as a reference
 
 **Describe the feature**
 
diff --git a/.github/workflows/agolia-update.yaml b/.github/workflows/agolia-update.yaml
index f32f3ed..64766a8 100644
--- a/.github/workflows/agolia-update.yaml
+++ b/.github/workflows/agolia-update.yaml
@@ -7,7 +7,7 @@
   push:
     paths:
       - content/**/*
-      # - config.toml
+      # - hugo.toml
 
 env:
   # Name of the branch in your repository which will store your generated site.
diff --git a/.github/workflows/aws-deploy.yaml b/.github/workflows/aws-deploy.yaml
index 3e440fc..041b5a9 100644
--- a/.github/workflows/aws-deploy.yaml
+++ b/.github/workflows/aws-deploy.yaml
@@ -13,7 +13,7 @@
   push:
     paths:
       # - exampleSite/content/**/*
-      - exampleSite/config.toml
+      - exampleSite/hugo.toml
   # pull_request:
   #   branches:
   #   - production
diff --git a/exampleSite/.forestry/settings.yml b/exampleSite/.forestry/settings.yml
index 0259b87..bc1f241 100644
--- a/exampleSite/.forestry/settings.yml
+++ b/exampleSite/.forestry/settings.yml
@@ -7,7 +7,7 @@
 - type: heading
   label: CONFIG
 - type: document
-  path: exampleSite/config.toml
+  path: exampleSite/hugo.toml
   label: Settings
 - type: heading
   label: PAGES
diff --git a/exampleSite/.github/workflows/agolia-update.yaml b/exampleSite/.github/workflows/agolia-update.yaml
index 3914f6e..d644a04 100644
--- a/exampleSite/.github/workflows/agolia-update.yaml
+++ b/exampleSite/.github/workflows/agolia-update.yaml
@@ -7,7 +7,7 @@
   push:
     paths:
       - content/**/*
-      - config.toml
+      - hugo.toml
 
 env:
   # Name of the branch in your repository which will store your generated site.
diff --git a/exampleSite/.github/workflows/aws-deploy.yaml b/exampleSite/.github/workflows/aws-deploy.yaml
index 4ff3112..af9752b 100644
--- a/exampleSite/.github/workflows/aws-deploy.yaml
+++ b/exampleSite/.github/workflows/aws-deploy.yaml
@@ -13,7 +13,7 @@
   push:
     paths:
       - content/**/*
-      - config.toml
+      - hugo.toml
   # pull_request:
   #   branches:
   #   - production
diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore
index af3ea6a..6380d20 100644
--- a/exampleSite/.gitignore
+++ b/exampleSite/.gitignore
@@ -1,3 +1,4 @@
+.hugo_build.lock
 public/
 .DS_Store
 node_modules
\ No newline at end of file
diff --git a/exampleSite/.gitmodules b/exampleSite/.gitmodules
deleted file mode 100644
index 3625a98..0000000
--- a/exampleSite/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "themes/compose"]
-	path = themes/compose
-	url = https://github.com/onweru/compose
diff --git a/exampleSite/.hugo_build.lock b/exampleSite/.hugo_build.lock
deleted file mode 100644
index e69de29..0000000
--- a/exampleSite/.hugo_build.lock
+++ /dev/null
diff --git a/exampleSite/content/blog/creating-a-new-theme.md b/exampleSite/content/blog/creating-a-new-theme.md
index 64ae76b..932c131 100644
--- a/exampleSite/content/blog/creating-a-new-theme.md
+++ b/exampleSite/content/blog/creating-a-new-theme.md
@@ -123,7 +123,7 @@
 drwxr-xr-x  7 quoha  staff  238 Sep 29 16:49 .
 drwxr-xr-x  3 quoha  staff  102 Sep 29 16:49 ..
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 archetypes
--rw-r--r--  1 quoha  staff   82 Sep 29 16:49 config.toml
+-rw-r--r--  1 quoha  staff   82 Sep 29 16:49 hugo.toml
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 content
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 layouts
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 static
@@ -140,7 +140,7 @@
 
 ```shell
 $ hugo --verbose
-INFO: 2014/09/29 Using config file: config.toml
+INFO: 2014/09/29 Using config file: hugo.toml
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
 WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html]
 WARN: 2014/09/29 Unable to locate layout: [404.html]
@@ -161,7 +161,7 @@
 $ ls -l
 total 8
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 archetypes
--rw-r--r--  1 quoha  staff   82 Sep 29 16:49 config.toml
+-rw-r--r--  1 quoha  staff   82 Sep 29 16:49 hugo.toml
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 content
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 layouts
 drwxr-xr-x  4 quoha  staff  136 Sep 29 17:02 public
@@ -187,7 +187,7 @@
 
 ```shell
 $ hugo server --verbose
-INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
 WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html]
 WARN: 2014/09/29 Unable to locate layout: [404.html]
@@ -240,7 +240,7 @@
 $ ls -l
 total 8
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 archetypes
--rw-r--r--  1 quoha  staff   82 Sep 29 16:49 config.toml
+-rw-r--r--  1 quoha  staff   82 Sep 29 16:49 hugo.toml
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 content
 drwxr-xr-x  2 quoha  staff   68 Sep 29 16:49 layouts
 drwxr-xr-x  4 quoha  staff  136 Sep 29 17:02 public
@@ -291,7 +291,7 @@
 
 Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format.
 
-    $ vi config.toml
+    $ vi hugo.toml
     theme = "zafta"
     baseurl = ""
     languageCode = "en-us"
@@ -307,7 +307,7 @@
 
 ```shell
 $ hugo --verbose
-INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
 WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html]
@@ -425,7 +425,7 @@
 
     $ rm -rf public
     $ hugo server --watch --verbose
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
     WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html]
@@ -478,7 +478,7 @@
 
 ```bash
 $ hugo --verbose
-INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
 WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html]
@@ -530,7 +530,7 @@
 
 ```bash
 $ hugo --verbose new post/first.md
-INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
 INFO: 2014/09/29 attempting to create  post/first.md of post
 INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md
 ERROR: 2014/09/29 Unable to Cast <nil> to map[string]interface{}
@@ -554,14 +554,14 @@
     -rw-r--r--  1 quoha  staff  51 Sep 29 21:54 themes/zafta/archetypes/post.md
     
     $ hugo --verbose new post/first.md
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 attempting to create  post/first.md of post
     INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md
     INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md
     /Users/quoha/Sites/zafta/content/post/first.md created
     
     $ hugo --verbose new post/second.md
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 attempting to create  post/second.md of post
     INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md
     INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md
@@ -602,7 +602,7 @@
 ```bash
 $ rm -rf public
 $ hugo --verbose
-INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
 INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
 INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", "tag":"tags"}
@@ -673,7 +673,7 @@
 ```shell
     $ rm -rf public
     $ hugo --verbose
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
@@ -747,7 +747,7 @@
 
     $ rm -rf public
     $ hugo --verbose
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
@@ -817,7 +817,7 @@
 ```shell
     $ rm -rf public
     $ hugo --verbose
-    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml
+    INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/
     INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
@@ -952,7 +952,7 @@
 
 Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file.
 
-    $ vi config.toml
+    $ vi hugo.toml
     [permalinks]
       page = "/:title/"
       about = "/:filename/"
@@ -1018,7 +1018,7 @@
 {{ partial "footer.html" . }}
 ```   
 
-Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file.
+Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the hugo.toml file.
 
 ### Update the Default Single Template to Use the Partials
 
diff --git a/exampleSite/content/docs/compose/customize.md b/exampleSite/content/docs/compose/customize.md
index 0794138..a9fac79 100644
--- a/exampleSite/content/docs/compose/customize.md
+++ b/exampleSite/content/docs/compose/customize.md
@@ -38,7 +38,7 @@
 
 ### How do I disable dark mode?
 
-Under `params` add `enableDarkMode = false` to your `config.toml` file. If your site is based on the exampleSite, the value is already included; you only need to uncomment it.
+Under `params` add `enableDarkMode = false` to your `hugo.toml` file. If your site is based on the exampleSite, the value is already included; you only need to uncomment it.
 
 > The user will still have the option to activate dark mode, if they so wish through the UI
 
@@ -50,7 +50,7 @@
 
 ### How can I change the address bar color on mobile devices?
 
-Just put the following line in the `[params]` section in your `config.toml` file (and of course change the color):
+Just put the following line in the `[params]` section in your `hugo.toml` file (and of course change the color):
 
 ```toml
 metaThemeColor = "#123456"
@@ -69,7 +69,7 @@
 
 The contents of the second file will be attached just before the `</body>` tag.
 
-Alternatively, if you want to use the `config.toml` to track your custom styles or scripts, declare them as slices under `[params]` like so:
+Alternatively, if you want to use the `hugo.toml` to track your custom styles or scripts, declare them as slices under `[params]` like so:
 
 ```toml
 ...
diff --git a/exampleSite/content/docs/compose/install-theme.md b/exampleSite/content/docs/compose/install-theme.md
index 69b8cee..f3b694a 100755
--- a/exampleSite/content/docs/compose/install-theme.md
+++ b/exampleSite/content/docs/compose/install-theme.md
@@ -35,7 +35,7 @@
 {{< tip "warning" >}}
 The exampleSite uses the theme as a hugo module by default.
 
-If you choose __Option 2__ or __Option 3__ below, ensure you edit [these lines in the config.toml file](https://github.com/onweru/compose/blob/b3e30e0816621223224897edc45eeeabd0d9cd16/exampleSite/config.toml#L4-L7) as advised on the comments. Else, you will not be able to pull theme updates.
+If you choose __Option 2__ or __Option 3__ below, ensure you edit [these lines in the hugo.toml file](https://github.com/onweru/compose/blob/b3e30e0816621223224897edc45eeeabd0d9cd16/exampleSite/hugo.toml#L4-L7) as advised on the comments. Else, you will not be able to pull theme updates.
 {{< /tip >}}
 
 ### Option 2 (recommended)
@@ -72,5 +72,5 @@
 Although, option 3 is great for quick testing, it is somewhat problematic when you want to update your theme. You would need to be careful not to overwrite your changes.
 {{< /tip >}}
 
-Once set, jump over to the [config.toml](https://github.com/onweru/compose/blob/afdf1cd76408aeac11547a6abd51bdc5138a295f/exampleSite/config.toml#L4-L7) file and start configuring your site.
+Once set, jump over to the [hugo.toml](https://github.com/onweru/compose/blob/afdf1cd76408aeac11547a6abd51bdc5138a295f/exampleSite/hugo.toml#L4-L7) file and start configuring your site.
 
diff --git a/exampleSite/content/docs/compose/search.md b/exampleSite/content/docs/compose/search.md
index d2dfd0c..e1e7347 100644
--- a/exampleSite/content/docs/compose/search.md
+++ b/exampleSite/content/docs/compose/search.md
@@ -4,7 +4,7 @@
 weight = 7
 +++
 
-Firstly, ensure you have these lines inside your config.toml file
+Firstly, ensure you have these lines inside your hugo.toml file
 
 ```toml
 [outputs]
diff --git a/exampleSite/config.toml b/exampleSite/hugo.toml
similarity index 100%
rename from exampleSite/config.toml
rename to exampleSite/hugo.toml
diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml
index 11a5c51..2a77fb4 100644
--- a/exampleSite/netlify.toml
+++ b/exampleSite/netlify.toml
@@ -5,6 +5,8 @@
 
 [context.production.environment]
 HUGO_VERSION = "0.117.0"
+GO_VERSION = "1.21.0"
+NODE_VERSION = "20.5.1"
 HUGO_ENV = "production"
 HUGO_ENABLEGITINFO = "true"
 
@@ -13,6 +15,8 @@
 
 [context.split1.environment]
 HUGO_VERSION = "0.117.0"
+GO_VERSION = "1.21.0"
+NODE_VERSION = "20.5.1"
 HUGO_ENV = "production"
 
 [context.deploy-preview]
@@ -20,12 +24,16 @@
 
 [context.deploy-preview.environment]
 HUGO_VERSION = "0.117.0"
+GO_VERSION = "1.21.0"
+NODE_VERSION = "20.5.1"
 
 [context.branch-deploy]
 command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 
 [context.branch-deploy.environment]
 HUGO_VERSION = "0.117.0"
+GO_VERSION = "1.21.0"
+NODE_VERSION = "20.5.1"
 
 [context.next.environment]
 HUGO_ENABLEGITINFO = "true"
diff --git a/exampleSite/package.json b/exampleSite/package.json
index 807a477..7100b4e 100644
--- a/exampleSite/package.json
+++ b/exampleSite/package.json
@@ -8,7 +8,7 @@
   },
   "keywords": [],
   "author": "",
-  "license": "ISC",
+  "license": "MIT",
   "dependencies": {
     "@tinacms/cli": "^1.5.26",
     "tinacms": "^1.5.17"
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..e90b620
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module github.com/onweru/compose
+
+go 1.20

--
Gitblit v1.10.0