mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-10 05:59:41 +00:00
Add bootstrap JS
This commit is contained in:
parent
3610b7a8d9
commit
a82ab80745
|
@ -2,12 +2,16 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
|
||||||
{{ partial "style.html" "scss/style.scss" }}
|
{{ partial "style.html" "scss/style.scss" }}
|
||||||
{{ partial "style.html" "css/highlight.css" }}
|
{{ partial "style.html" "css/highlight.css" }}
|
||||||
{{ partial "style.html" "css/font-awesome.css" }}
|
{{ partial "style.html" "css/font-awesome.css" }}
|
||||||
|
|
||||||
|
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
|
||||||
|
{{ partial "script_async.html" "js/bootstrap.min.js" }}
|
||||||
|
{{ block "scripts_extra" . }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
9
layouts/partials/script_async.html
Normal file
9
layouts/partials/script_async.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{{ $script := resources.Get . }}
|
||||||
|
|
||||||
|
{{ if in . "min" }}
|
||||||
|
{{ $script = $script | minify | fingerprint }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
|
|
@ -11,6 +11,7 @@ mkdir -p "$STATIC_BUILD/img"
|
||||||
|
|
||||||
mkdir -p "$STATIC_BUILD/js"
|
mkdir -p "$STATIC_BUILD/js"
|
||||||
#cp -r "$STATIC_SRC/js/*" "$STATIC_BUILD/js"
|
#cp -r "$STATIC_SRC/js/*" "$STATIC_BUILD/js"
|
||||||
|
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.min.js
|
||||||
|
|
||||||
mkdir -p "$STATIC_BUILD/css"
|
mkdir -p "$STATIC_BUILD/css"
|
||||||
#cp -r "$STATIC_SRC/css/*" "$STATIC_BUILD/css"
|
#cp -r "$STATIC_SRC/css/*" "$STATIC_BUILD/css"
|
||||||
|
|
Loading…
Reference in a new issue