Skip to content

Commit 7ec4686

Browse files
luizdepraEdward Muller
and
Edward Muller
authored
Merge go modules (#543)
* Add support for using as a Hugo module (#534) * Add support for using as a Hugo module Fixes #502 * Don't need/want the theme directory with modules * Fix go.{mod,sum} files * Set go version and hugo version everywhere Co-authored-by: Luiz F. A. de Prá <[email protected]> * Remove hugo mod from exampleSite and Netlify build * Bump hugo version * Move env vars inside netlify.toml Co-authored-by: Edward Muller <[email protected]>
1 parent 1555abc commit 7ec4686

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@
9696
- [Ziwei Pan](https://github.com/PanZiwei/)
9797
- [Viktar Patotski](https://github.com/xp-vit)
9898
- [cuso4-5h2o](https://www.cuso4.me)
99+
- [freeformz](https://icanhazdowntime.org)

config.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
baseURL = "https://example.com/"
2+
3+
[module]
4+
[module.hugoVersion]
5+
min = "0.77.0"

exampleSite/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ theme = "hugo-coder"
44
languageCode = "en"
55
defaultContentLanguage = "en"
66
paginate = 20
7-
pygmentsStyle = "b2"
7+
pygmentsStyle = "bw"
88
pygmentsCodeFences = true
99
pygmentsCodeFencesGuessSyntax = true
1010
enableEmoji = true

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/luizdepra/hugo-coder
2+
3+
go 1.16

netlify.toml

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
publish = "exampleSite/public"
33
command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL"
44

5-
[context.production.environment]
6-
HUGO_VERSION = "0.73.0"
5+
[build.environment]
6+
HUGO_VERSION = "0.77.0"
77
HUGO_THEME = "repo"
88

99
[context.deploy-preview]
1010
command = "cd exampleSite && hugo --themesDir=../.. --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"
11-
12-
[context.deploy-preview.environment]
13-
HUGO_VERSION = "0.73.0"
14-
HUGO_THEME = "repo"

theme.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ features = [
2020
"single-column",
2121
"syntax-highlighting"
2222
]
23-
min_version = "0.73.0"
23+
min_version = "0.77.0"
2424

2525
[author]
2626
name = "Luiz F. A. de Prá"

0 commit comments

Comments
 (0)