fix: workaround Hugo Modules incompatibility with Bootstrap

"In Go Modules, the /vendor directory in a module has a special meaning, so they delete it from the bundle"

Enables Academic to be installed as a Hugo Module.

See https://github.com/gohugoio/hugo/issues/6945
This commit is contained in:
George Cushen 2020-08-06 23:48:33 +01:00
commit 38514dbc73
92 changed files with 2 additions and 2 deletions

View file

@ -36,6 +36,6 @@ $sta-dark-home-section-odd: {{ $scr.Get "dark_home_section_odd" }};
$sta-dark-home-section-even: {{ $scr.Get "dark_home_section_even" }};
@import "bootstrap_variables";
@import "vendor/bootstrap/bootstrap";
@import "_vendor/bootstrap/bootstrap";
@import "academic/academic";
@import "custom";

View file

@ -151,7 +151,7 @@
{{ $js_academic := resources.Get "js/academic.js" }}
{{ $js_academic_search := resources.Get "js/academic-search.js" }}
{{ $js_algolia_search := resources.Get "js/algolia-search.js" }}
{{ $js_bootstrap := resources.Get "js/vendor/bootstrap.min.js" }}
{{ $js_bootstrap := resources.Get "js/_vendor/bootstrap.min.js" }}
{{ $js_bundle := slice $js_bootstrap $js_linebreak $js_academic }}
{{ if eq site.Params.search.engine 1 }}
{{ $js_bundle = $js_bundle | append $js_academic_search }}