diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-09 10:56:46 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-09 10:56:46 +0200 |
| commit | d3d3f34281e231c256478eb383ad2f286b00a077 (patch) | |
| tree | 01532e4d87e9daa2aeea1cd466e425b2b0f1eb8a /exampleSite/content/documentation | |
| parent | 233233e97e9e023c90ceba136b11fe0f5fd7ddce (diff) | |
| download | gohugo-theme-ed-d3d3f34281e231c256478eb383ad2f286b00a077.tar.gz | |
Migrate config to yaml
Diffstat (limited to 'exampleSite/content/documentation')
| -rw-r--r-- | exampleSite/content/documentation/index.md | 12 |
1 files changed, 6 insertions, 6 deletions
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/<your_user>/<your_project> ~~~ -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): |
