init hugo module
This commit is contained in:
parent
b7cf534a74
commit
bba14a63ac
4 changed files with 14 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
baseURL = "https://gohugo.io"
|
baseURL = "https://hugo-paper.vercel.app/"
|
||||||
# title = "Hugo Themes"
|
# title = "Hugo Themes"
|
||||||
author = "Steve Francia"
|
author = "Steve Francia"
|
||||||
copyright = "Copyright © 2008–2019, Steve Francia and the lee.so; all rights reserved."
|
copyright = "Copyright © 2008–2019, Steve Francia and the lee.so; all rights reserved."
|
||||||
|
@ -12,8 +12,13 @@ ignoreErrors = ["error-remote-getjson"]
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
theme = "hugo-paper"
|
theme = "hugo-paper"
|
||||||
|
#themesDir = "../.."
|
||||||
title = "Paper"
|
title = "Paper"
|
||||||
|
|
||||||
|
[module]
|
||||||
|
[[module.imports]]
|
||||||
|
path = "github.com/nanxiaobei/hugo-paper"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
twitter = 'nanxiaobei'
|
twitter = 'nanxiaobei'
|
||||||
github = 'nanxiaobei'
|
github = 'nanxiaobei'
|
||||||
|
|
5
exampleSite/go.mod
Normal file
5
exampleSite/go.mod
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module hugo-paper
|
||||||
|
|
||||||
|
go 1.11
|
||||||
|
|
||||||
|
require github.com/nanxiaobei/hugo-paper b7cf534a7418583b7c2768bed9c6faa2e94e0293 // indirect
|
1
exampleSite/go.sum
Normal file
1
exampleSite/go.sum
Normal file
|
@ -0,0 +1 @@
|
||||||
|
github.com/nanxiaobei/hugo-paper b7cf534a7418583b7c2768bed9c6faa2e94e0293/go.mod
|
|
@ -8,7 +8,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"site": "hugo server -Dw --minify --disableFastRender --themesDir ../.. --source exampleSite",
|
"site": "hugo server -Dw --minify --disableFastRender --themesDir ../.. --source exampleSite",
|
||||||
"open": "open http://localhost:1313/",
|
"open": "open http://localhost:1313/",
|
||||||
"dev": "yarn open & yarn site"
|
"dev": "yarn open & yarn site",
|
||||||
|
"build": "hugo --gc --minify --themesDir ../.. --source exampleSite"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
|
|
Loading…
Reference in a new issue