1
0
Fork 0

init hugo module

This commit is contained in:
nanxiaobei 2021-08-24 07:48:16 +08:00
parent b7cf534a74
commit bba14a63ac
4 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
baseURL = "https://gohugo.io"
baseURL = "https://hugo-paper.vercel.app/"
# title = "Hugo Themes"
author = "Steve Francia"
copyright = "Copyright © 20082019, 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
View 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
View File

@ -0,0 +1 @@
github.com/nanxiaobei/hugo-paper b7cf534a7418583b7c2768bed9c6faa2e94e0293/go.mod

View File

@ -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",