From 965129144fc528482279cf91f64797fd651050f4 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 11 May 2022 23:30:50 +0200 Subject: Rollback 20e87403091d8c73049991af87aa76d7d3763d09 --- .gitattributes | 3 +++ exampleSite/config.toml | 3 ++- exampleSite/go.mod | 7 +++++++ exampleSite/go.sum | 0 go.mod | 3 +++ package.json | 4 ++-- 6 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 exampleSite/go.mod create mode 100644 exampleSite/go.sum create mode 100644 go.mod diff --git a/.gitattributes b/.gitattributes index ab8c7f1..723031e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -12,6 +12,9 @@ .gitignore export-ignore .github export-ignore +go.mod export-ignore +go.sum export-ignore + exampleSite/** linguist-vendored resources/_gen/** linguist-vendored diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 29aa2de..998bf5a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,7 +3,8 @@ baseURL = 'https://example.com/' languageCode = 'en-us' defaultContentLanguage = 'en' title = 'Ed.' -theme = 'ed' +theme = ['github.com/sergeyklay/gohugo-theme-ed'] +resourceDir = '../resources' [languages] [languages.en] diff --git a/exampleSite/go.mod b/exampleSite/go.mod new file mode 100644 index 0000000..b284689 --- /dev/null +++ b/exampleSite/go.mod @@ -0,0 +1,7 @@ +module github.com/sergeyklay/gohugo-theme-ed/exampleSite + +go 1.18 + +replace github.com/sergeyklay/gohugo-theme-ed => ../ + +require github.com/sergeyklay/gohugo-theme-ed v0.0.0-20220424201054-c40490eb087e // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..002ccfa --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/sergeyklay/gohugo-theme-ed + +go 1.18 diff --git a/package.json b/package.json index 3b968eb..dfaa54d 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "url": "git+https://github.com/sergeyklay/gohugo-theme-ed.git" }, "scripts": { - "build": "hugo --contentDir=exampleSite/content --gc --minify --themesDir=..", - "server": "hugo server --contentDir=exampleSite/content --disableFastRender --themesDir=..", + "build": "hugo --source=exampleSite --gc --minify", + "server": "hugo server --source=exampleSite --disableFastRender", "lint:editorconfig": "editorconfig-checker", "lint:js": "eslint static/js/*.js", "lint": "npm run lint:js && npm run lint:editorconfig" -- cgit v1.2.3