From d3d3f34281e231c256478eb383ad2f286b00a077 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 9 Jul 2022 10:56:46 +0200 Subject: Migrate config to yaml --- exampleSite/content/documentation/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'exampleSite/content/documentation/index.md') diff --git a/exampleSite/content/documentation/index.md b/exampleSite/content/documentation/index.md index 4989b86..344dc91 100644 --- a/exampleSite/content/documentation/index.md +++ b/exampleSite/content/documentation/index.md @@ -32,16 +32,16 @@ If you don't get an error, you're good to go. Using the `cd` command on your ter $ hugo mod init github.com// ~~~ -Take a look inside the [`exampleSite`](https://github.com/sergeyklay/gohugo-theme-ed/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config.toml). To use it, copy the [`config.toml`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change the strings in this theme. +Take a look inside the [`exampleSite`](https://github.com/sergeyklay/gohugo-theme-ed/tree/master/exampleSite) folder of this theme. You'll find a folder called [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config). Copy the [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config) folder in the project root of your Hugo site. Check the contents of the `config` folder and configure it. You will need to delete the following line: `resourceDir = '../resources'`, because it's necessary only for theme developers. -After that, import the theme adding the following lines to `config.yaml`: +After that, import the theme adding the following lines to `config/_default/config.yaml`: -~~~ toml -[module] -[[module.imports]] - path = 'github.com/sergeyklay/gohugo-theme-ed' +~~~ yaml +module: + imports: + - path: github.com/sergeyklay/gohugo-theme-ed ~~~ Finally, install Hugo Modules using the following command (remember you can copy and paste): -- cgit v1.2.3 From d13879fd26c04fe6bc5c871d79dc3fee11d4a7a2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 9 Jul 2022 11:26:26 +0200 Subject: Remove resource dir from example config --- exampleSite/content/documentation/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'exampleSite/content/documentation/index.md') diff --git a/exampleSite/content/documentation/index.md b/exampleSite/content/documentation/index.md index 344dc91..eac5c9c 100644 --- a/exampleSite/content/documentation/index.md +++ b/exampleSite/content/documentation/index.md @@ -26,7 +26,7 @@ Please note, to install Ed, you must have [Go >= 1.12](https://golang.org/dl/) i $ go version ~~~ -If you don't get an error, you're good to go. Using the `cd` command on your terminal, navigate to the folder where you keep your web projects. Once you're in the folder where project live, initialize the Hugo Module system using the following line (replace `` and `` by real names): +If you don't get an error, you're good to go. Using the `cd` command on your terminal, navigate to the folder where you keep your web projects. Once you're in the folder where project live, initialize the [Hugo Modules](https://gohugo.io/hugo-modules) system using the following line (replace `` and `` by real names): ~~~ bash $ hugo mod init github.com// @@ -34,8 +34,6 @@ $ hugo mod init github.com// Take a look inside the [`exampleSite`](https://github.com/sergeyklay/gohugo-theme-ed/tree/master/exampleSite) folder of this theme. You'll find a folder called [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config). Copy the [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config) folder in the project root of your Hugo site. Check the contents of the `config` folder and configure it. -You will need to delete the following line: `resourceDir = '../resources'`, because it's necessary only for theme developers. - After that, import the theme adding the following lines to `config/_default/config.yaml`: ~~~ yaml -- cgit v1.2.3