diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-10-20 10:46:04 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-11-19 21:54:42 +0300 |
commit | 50d892167036f440f9224327b0a48cf72a2e44b6 (patch) | |
tree | dd3960daeb3fde721792eb4d4cf5b13f8dfe643d /site/layouts | |
parent | 3fcfd606f2c264f1d3434e99c140a05edec461c3 (diff) |
Adapt to the recent main changes
* remove `bs-custom-file-input.min.js`
* switch to errorf
* change error message
Diffstat (limited to 'site/layouts')
-rw-r--r-- | site/layouts/partials/func/get-js-assets.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/site/layouts/partials/func/get-js-assets.html b/site/layouts/partials/func/get-js-assets.html index a7a27292e7..351e9ad1dc 100644 --- a/site/layouts/partials/func/get-js-assets.html +++ b/site/layouts/partials/func/get-js-assets.html @@ -18,7 +18,7 @@ {{ $jsAssets := slice }} {{/* Storing the reused mount warning message */}} -{{ $missing_file_warning := "%s not found. Check your mounts settings." }} +{{ $missing_file_warning := "%s not found. Check your mounts settings and/or run `npm i`." }} {{ $doc_version := site.Params.docs_version }} {{/* Doc Search */}} {{ if eq .Page.Layout "docs" -}} @@ -31,7 +31,7 @@ */}} {{ $jsAssets = $jsAssets | append . }} {{ else }} - {{ warnf $missing_file_warning "docsearch.min.js" }} + {{ errorf $missing_file_warning "docsearch.min.js" }} {{ end }} {{- end }} @@ -44,12 +44,12 @@ 1. Check for missing mounts and throw an error 2. Control order if need be 3. Exclude docsearch (though there would be other ways) */}} -{{ $vendor_filenames := slice "clipboard.min.js" "anchor.min.js" "bs-custom-file-input.min.js" }} +{{ $vendor_filenames := slice "clipboard.min.js" "anchor.min.js" }} {{ range $filename := $vendor_filenames }} {{ with resources.GetMatch (print "js/vendor/" .) }} {{ $vendor_assets = $vendor_assets | append . }} {{ else }} - {{ warnf $missing_file_warning $filename }} + {{ errorf $missing_file_warning $filename }} {{ end }} {{ end }} {{ with $vendor_assets }} |