From 1b9806ad6a5cd3295c96d1322af96b33fd246533 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 7 Apr 2024 15:10:53 +0200 Subject: 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 --- exampleSite/config/_default/config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'exampleSite/config/_default') 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 -- cgit v1.2.3