summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config/_default/config.yaml7
-rw-r--r--exampleSite/content/documentation/index.md4
-rw-r--r--package.json2
3 files changed, 6 insertions, 7 deletions
diff --git a/exampleSite/config/_default/config.yaml b/exampleSite/config/_default/config.yaml
index b9ae39d..1b67277 100644
--- a/exampleSite/config/_default/config.yaml
+++ b/exampleSite/config/_default/config.yaml
@@ -16,9 +16,6 @@ title: Ed.
# This is replaced in go.mod for exampleSite to point to the directory above.
theme: github.com/sergeyklay/gohugo-theme-ed
-# You may need to delete this line for your real project.
-resourceDir: ../resources
-
enableRobotsTXT: true
# When using ref or relref to resolve page links and a link cannot
@@ -30,6 +27,10 @@ disableKinds:
- RSS
# Google Analytics Tracking ID.
+#
+# For more info, read the article
+# https://support.google.com/analytics/answer/10089681
+#
# Set `HUGO_ENV` environment variable or `site.Params.env` configuration
# parameter to "production" to use Google Analytics.
googleAnalytics: ''
diff --git a/exampleSite/content/documentation/index.md b/exampleSite/content/documentation/index.md
index 344dc91..eac5c9c 100644
--- a/exampleSite/content/documentation/index.md
+++ b/exampleSite/content/documentation/index.md
@@ -26,7 +26,7 @@ Please note, to install Ed, you must have [Go >= 1.12](https://golang.org/dl/) i
$ go version
~~~
-If you don't get an error, you're good to go. Using the `cd` command on your terminal, navigate to the folder where you keep your web projects. Once you're in the folder where project live, initialize the Hugo Module system using the following line (replace `<your_user>` and `<your_project>` by real names):
+If you don't get an error, you're good to go. Using the `cd` command on your terminal, navigate to the folder where you keep your web projects. Once you're in the folder where project live, initialize the [Hugo Modules](https://gohugo.io/hugo-modules) system using the following line (replace `<your_user>` and `<your_project>` by real names):
~~~ bash
$ hugo mod init github.com/<your_user>/<your_project>
@@ -34,8 +34,6 @@ $ hugo mod init github.com/<your_user>/<your_project>
Take a look inside the [`exampleSite`](https://github.com/sergeyklay/gohugo-theme-ed/tree/master/exampleSite) folder of this theme. You'll find a folder called [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config). Copy the [`config`](https://github.com/sergeyklay/gohugo-theme-ed/blob/master/exampleSite/config) folder in the project root of your Hugo site. Check the contents of the `config` folder and configure it.
-You will need to delete the following line: `resourceDir = '../resources'`, because it's necessary only for theme developers.
-
After that, import the theme adding the following lines to `config/_default/config.yaml`:
~~~ yaml
diff --git a/package.json b/package.json
index 30dbe3f..e42880f 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
"author": "Serghei Iakovlev <egrep@protonmail.ch>",
"main": "index.js",
"scripts": {
- "server": "HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender",
+ "server": "HUGO_RESOURCEDIR='../resources' HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender",
"lint": "npm run lint:js && npm run lint:editorconfig",
"lint:editorconfig": "editorconfig-checker",
"lint:js": "eslint static/js/*.js assets/js/*.js"