forked from bkleinen/bkleinen.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold-bootstrap.txt
23 lines (20 loc) · 1.01 KB
/
old-bootstrap.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ if .Site.IsServer }}
{{ $style := resources.Get "scss/main.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
{{ $style := resources.Get "scss/main.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style | minify | fingerprint).RelPermalink }}">
{{ end }}
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
{{ $bootstrap := (slice "js/bootstrap/jquery.slim.min.js" "js/bootstrap/popper.min.js" "js/bootstrap/bootstrap.min.js") }}
{{ if .Site.IsServer }}
{{ range $bootstrap }}
{{ $scripts := resources.Get . }}
<script type="text/javascript" src="{{ $scripts.RelPermalink }}"></script>
{{ end }}
{{ else }}
{{ range $bootstrap }}
{{ $scripts := resources.Get . }}
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
{{ end }}
{{ end }}