From f1cac00aa0b28c31f8b5afad0b25c7e0385d5ceb Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Fri, 14 Oct 2022 12:32:23 +0200 Subject: [PATCH] Fix: hugo serve does not serve font awesome anymore (#1281) --- dependencies/config.toml | 81 +++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/dependencies/config.toml b/dependencies/config.toml index 3d4ec07abd..1401512bbc 100644 --- a/dependencies/config.toml +++ b/dependencies/config.toml @@ -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"