summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitattributes3
-rw-r--r--exampleSite/config.toml3
-rw-r--r--exampleSite/go.mod7
-rw-r--r--exampleSite/go.sum0
-rw-r--r--go.mod3
-rw-r--r--package.json4
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
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"