mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
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:
parent
437d478f69
commit
38514dbc73
92 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue