diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 15:10:53 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-07 15:14:57 +0200 |
| commit | 1b9806ad6a5cd3295c96d1322af96b33fd246533 (patch) | |
| tree | c3dbe65e299375fc62cea14131bf8376f990af03 /exampleSite/config/_default/config.yaml | |
| parent | 8858738b17ea5b992d684ff40450b5405cea22c8 (diff) | |
| download | gohugo-theme-ed-1b9806ad6a5cd3295c96d1322af96b33fd246533.tar.gz | |
Use Hugo's module imports for theme configuration
- Remove the `theme` variable from config.yaml
- Add the theme's repository path to the `imports` section under `module`
- Update comments to clarify the purpose of the `imports` section
Diffstat (limited to 'exampleSite/config/_default/config.yaml')
| -rw-r--r-- | exampleSite/config/_default/config.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/exampleSite/config/_default/config.yaml b/exampleSite/config/_default/config.yaml index d5b1459..3941f28 100644 --- a/exampleSite/config/_default/config.yaml +++ b/exampleSite/config/_default/config.yaml @@ -12,10 +12,6 @@ defaultContentLanguage: en # title of the page. Eg. "Contacts - Ed." title: Ed. -# Use full path to theme's repository in case of using Hugo Modules. -# This is replaced in go.mod for exampleSite to point to the directory above. -theme: github.com/sergeyklay/gohugo-theme-ed - enableRobotsTXT: true # When using ref or relref to resolve page links and a link cannot @@ -170,3 +166,7 @@ module: hugoVersion: extended: true min: '0.114.0' + imports: + # Use full path to theme's repository. This is replaced in go.mod for + # exampleSite to point to the directory above. + - path: github.com/sergeyklay/gohugo-theme-ed |
