Skip to content

Commit

Permalink
Turn theme into a hugo module
Browse files Browse the repository at this point in the history
This way, the theme pulls in dependency 'bulma' as go module
  • Loading branch information
deining committed Feb 26, 2023
1 parent b43789a commit ea2b8bd
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 1 deletion.
26 changes: 26 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Dependency 'bulma' is brought in as module
# and mount points are declared
module:
imports:
- path: github.com/jgthms/bulma
mounts:
- source: bulma.sass
target: assets/bulma/bulma.sass
- source: sass
target: assets/bulma/sass
- source: sass/base
target: assets/bulma/sass/base
- source: sass/components
target: assets/bulma/sass/components
- source: sass/elements
target: assets/bulma/sass/elements
- source: sass/form
target: assets/bulma/sass/form
- source: sass/grid
target: assets/bulma/sass/grid
- source: sass/helpers
target: assets/bulma/sass/helpers
- source: sass/layout
target: assets/bulma/sass/layout
- source: sass/utilities
target: assets/bulma/sass/utilities
3 changes: 2 additions & 1 deletion exampleSite/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
baseURL: http://something-fresh.org/
languageCode: en-us
title: Hugo Fresh Theme
theme: hugo-fresh
# theme: hugo-fresh
theme: github.com/StefMa/hugo-fresh
googleAnalytics: # Put in your tracking code without quotes like this: UA-XXXXXX...
# Disables warnings
disableKinds:
Expand Down
7 changes: 7 additions & 0 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module github.com/StefMa/hugo-fresh/exampleSite

go 1.12

replace github.com/StefMa/hugo-fresh => ../

require github.com/StefMa/hugo-fresh v0.0.0-20220303155657-8a3fe0559acf // indirect
3 changes: 3 additions & 0 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github.com/StefMa/hugo-fresh v0.0.0-20220303155657-8a3fe0559acf h1:TO5yCImzeAKlFbIbAvvaN4s1mP45RV4NMoCuXe6zve8=
github.com/StefMa/hugo-fresh v0.0.0-20220303155657-8a3fe0559acf/go.mod h1:0kyrjS5vdFJ47D7bPs6JwXTkctiMaQbToeBaOQsw1Tw=
github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0/go.mod h1:89FLBKXYFKfOKAoDeUT26V0pHGwzr205cMXAEqtAVOI=
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/StefMa/hugo-fresh

go 1.12

require github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0 h1:d61c8CjPFq6aGikBXMepfewc8/3IbrTCiC1xHcMcvHI=
github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0/go.mod h1:89FLBKXYFKfOKAoDeUT26V0pHGwzr205cMXAEqtAVOI=

0 comments on commit ea2b8bd

Please sign in to comment.