Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml7
-rw-r--r--exampleSite/go.mod5
-rw-r--r--exampleSite/go.sum1
-rw-r--r--package.json3
4 files changed, 14 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e3cc1c6..6cad7db 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,4 +1,4 @@
-baseURL = "https://gohugo.io"
+baseURL = "https://hugo-paper.vercel.app/"
# title = "Hugo Themes"
author = "Steve Francia"
copyright = "Copyright © 2008–2019, Steve Francia and the lee.so; all rights reserved."
@@ -12,8 +12,13 @@ ignoreErrors = ["error-remote-getjson"]
# ------------------------------
theme = "hugo-paper"
+#themesDir = "../.."
title = "Paper"
+[module]
+ [[module.imports]]
+ path = "github.com/nanxiaobei/hugo-paper"
+
[params]
twitter = 'nanxiaobei'
github = 'nanxiaobei'
diff --git a/exampleSite/go.mod b/exampleSite/go.mod
new file mode 100644
index 0000000..1ef2995
--- /dev/null
+++ b/exampleSite/go.mod
@@ -0,0 +1,5 @@
+module hugo-paper
+
+go 1.11
+
+require github.com/nanxiaobei/hugo-paper b7cf534a7418583b7c2768bed9c6faa2e94e0293 // indirect
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
new file mode 100644
index 0000000..063878c
--- /dev/null
+++ b/exampleSite/go.sum
@@ -0,0 +1 @@
+github.com/nanxiaobei/hugo-paper b7cf534a7418583b7c2768bed9c6faa2e94e0293/go.mod
diff --git a/package.json b/package.json
index 8f1e76b..2dad11e 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,8 @@
"scripts": {
"site": "hugo server -Dw --minify --disableFastRender --themesDir ../.. --source exampleSite",
"open": "open http://localhost:1313/",
- "dev": "yarn open & yarn site"
+ "dev": "yarn open & yarn site",
+ "build": "hugo --gc --minify --themesDir ../.. --source exampleSite"
},
"dependencies": {
"prettier": "^2.3.2",