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"
|
||||
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'
|
||||
|
|
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": {
|
||||
"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",
|
||||
|
|
Loading…
Reference in a new issue