mirror of https://github.com/onweru/compose.git

Andreas Deininger
21.57.2023 8848c443a868d959839b5de120d41941a230e8d9
Rename config.toml to hugo.toml
2 files deleted
1 files added
1 files renamed
14 files modified
79 ■■■■■ changed files
.github/ISSUE_TEMPLATE/bug_report.md 2 ●●● patch | view | raw | blame | history
.github/ISSUE_TEMPLATE/feature_request.md 2 ●●● patch | view | raw | blame | history
.github/workflows/agolia-update.yaml 2 ●●● patch | view | raw | blame | history
.github/workflows/aws-deploy.yaml 2 ●●● patch | view | raw | blame | history
exampleSite/.forestry/settings.yml 2 ●●● patch | view | raw | blame | history
exampleSite/.github/workflows/agolia-update.yaml 2 ●●● patch | view | raw | blame | history
exampleSite/.github/workflows/aws-deploy.yaml 2 ●●● patch | view | raw | blame | history
exampleSite/.gitignore 1 ●●●● patch | view | raw | blame | history
exampleSite/.gitmodules 3 ●●●●● patch | view | raw | blame | history
exampleSite/.hugo_build.lock patch | view | raw | blame | history
exampleSite/content/blog/creating-a-new-theme.md 36 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/customize.md 6 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/install-theme.md 4 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/search.md 2 ●●● patch | view | raw | blame | history
exampleSite/hugo.toml patch | view | raw | blame | history
exampleSite/netlify.toml 8 ●●●●● patch | view | raw | blame | history
exampleSite/package.json 2 ●●● patch | view | raw | blame | history
go.mod 3 ●●●●● patch | view | raw | blame | history
.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.
.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**
.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.
.github/workflows/aws-deploy.yaml
@@ -13,7 +13,7 @@
  push:
    paths:
      # - exampleSite/content/**/*
      - exampleSite/config.toml
      - exampleSite/hugo.toml
  # pull_request:
  #   branches:
  #   - production
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
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.
exampleSite/.github/workflows/aws-deploy.yaml
@@ -13,7 +13,7 @@
  push:
    paths:
      - content/**/*
      - config.toml
      - hugo.toml
  # pull_request:
  #   branches:
  #   - production
exampleSite/.gitignore
@@ -1,3 +1,4 @@
.hugo_build.lock
public/
.DS_Store
node_modules
exampleSite/.gitmodules
File was deleted
exampleSite/.hugo_build.lock
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
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
...
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.
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]
exampleSite/hugo.toml
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"
exampleSite/package.json
@@ -8,7 +8,7 @@
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "license": "MIT",
  "dependencies": {
    "@tinacms/cli": "^1.5.26",
    "tinacms": "^1.5.17"
go.mod
New file
@@ -0,0 +1,3 @@
module github.com/onweru/compose
go 1.20