Skip to content

Commit

Permalink
Fix: hugo serve does not serve font awesome anymore (google#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Oct 14, 2022
1 parent 19ec7be commit f1cac00
Showing 1 changed file with 42 additions and 39 deletions.
81 changes: 42 additions & 39 deletions dependencies/config.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
[module]
_merge = "deep"
# work around https://github.com/golang/go/issues/37397
[[module.mounts]]
source = "assets/bootstrap/scss/_vendor"
target = "assets/vendor/bootstrap/scss/vendor"
# mount asserts directory
[[module.mounts]]
source = "assets"
target = "assets"
# mount i18n directory
[[module.mounts]]
source = "i18n"
target = "i18n"
# mount layouts directory
[[module.mounts]]
source = "layouts"
target = "layouts"
# mount static directory
[[module.mounts]]
source = "static"
target = "static"
# Dependencies are brought in as modules
# and mount points are declared
[[module.imports]]
path = "github.com/twbs/bootstrap"
disable = false
[[module.imports.mounts]]
source = "scss"
target = "assets/vendor/bootstrap/scss"
[[module.imports.mounts]]
source = "dist/js"
target = "assets/vendor/bootstrap/dist/js"
[[module.imports]]
path = "github.com/FortAwesome/Font-Awesome"
disable = false
[[module.imports.mounts]]
source = "scss"
target = "assets/vendor/Font-Awesome/scss"
[module]
_merge = "deep"
# work around https://github.com/golang/go/issues/37397
[[module.mounts]]
source = "assets/bootstrap/scss/_vendor"
target = "assets/vendor/bootstrap/scss/vendor"
# mount asserts directory
[[module.mounts]]
source = "assets"
target = "assets"
# mount i18n directory
[[module.mounts]]
source = "i18n"
target = "i18n"
# mount layouts directory
[[module.mounts]]
source = "layouts"
target = "layouts"
# mount static directory
[[module.mounts]]
source = "static"
target = "static"
# Dependencies are brought in as modules
# and mount points are declared
[[module.imports]]
path = "github.com/twbs/bootstrap"
disable = false
[[module.imports.mounts]]
source = "scss"
target = "assets/vendor/bootstrap/scss"
[[module.imports.mounts]]
source = "dist/js"
target = "assets/vendor/bootstrap/dist/js"
[[module.imports]]
path = "github.com/FortAwesome/Font-Awesome"
disable = false
[[module.imports.mounts]]
source = "scss"
target = "assets/vendor/Font-Awesome/scss"
[[module.imports.mounts]]
source = "webfonts"
target = "static/webfonts"

0 comments on commit f1cac00

Please sign in to comment.