diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-11 23:30:50 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-11 23:31:05 +0200 |
| commit | 965129144fc528482279cf91f64797fd651050f4 (patch) | |
| tree | 70c621d5508333b005c91a35600317832d36890c | |
| parent | c2c78c90f10485e89e52520951340ba9a1558408 (diff) | |
| download | gohugo-theme-ed-965129144fc528482279cf91f64797fd651050f4.tar.gz | |
Rollback 20e87403091d8c73049991af87aa76d7d3763d09
| -rw-r--r-- | .gitattributes | 3 | ||||
| -rw-r--r-- | exampleSite/config.toml | 3 | ||||
| -rw-r--r-- | exampleSite/go.mod | 7 | ||||
| -rw-r--r-- | exampleSite/go.sum | 0 | ||||
| -rw-r--r-- | go.mod | 3 | ||||
| -rw-r--r-- | package.json | 4 |
6 files changed, 17 insertions, 3 deletions
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 --- /dev/null +++ b/exampleSite/go.sum @@ -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" |
