Einbinden von CustomCSS setzt keine Site-Base mehr davor + kleinere Anpassungen um Leerzeilen zu vermeiden

This commit is contained in:
mdn 2023-01-22 00:47:23 +01:00
parent c14beceef6
commit 631c22e7c6
18 changed files with 134 additions and 146 deletions

View file

@ -1,16 +1,12 @@
{{ $bootstrapJs := resources.Get "bootstrap/js/bootstrap.bundle.min.js" }}
<script src="{{ $bootstrapJs.Permalink | relURL }}"></script>
{{ $featherJs := resources.Get "feather/js/feather.min.js" }}
<script src="{{ $featherJs.Permalink | relURL }}"></script>
{{ $mainJs := resources.Get "_own/js/main.js" | js.Build | minify }}
<script src="{{ $mainJs.Permalink | relURL }}"></script>
{{- range .Site.Params.custom_js -}}
{{- $bootstrapJs := resources.Get "bootstrap/js/bootstrap.bundle.min.js" }}
<script src="{{ $bootstrapJs.Permalink | relURL }}"></script>
{{- $featherJs := resources.Get "feather/js/feather.min.js" }}
<script src="{{ $featherJs.Permalink | relURL }}"></script>
{{- $mainJs := resources.Get "_own/js/main.js" | js.Build | minify }}
<script src="{{ $mainJs.Permalink | relURL }}"></script>
{{- range .Site.Params.custom_js }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{ end }}
<script>
feather.replace();
</script>
{{- end }}
<script>
feather.replace();
</script>