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" # title = "Hugo Themes"
author = "Steve Francia" author = "Steve Francia"
copyright = "Copyright © 20082019, Steve Francia and the lee.so; all rights reserved." copyright = "Copyright © 20082019, 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
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": { "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",