mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +00:00
Canonify owlCarousel css path
This commit is contained in:
parent
5687d97c78
commit
1cc7ddd7cd
12 changed files with 10 additions and 10 deletions
|
@ -1 +0,0 @@
|
|||
{"Target":"styles/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -0,0 +1 @@
|
|||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -1 +0,0 @@
|
|||
{"Target":"styles/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -0,0 +1 @@
|
|||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -1 +0,0 @@
|
|||
{"Target":"styles/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -0,0 +1 @@
|
|||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
|
@ -1,5 +1,5 @@
|
|||
{{ $jQuery := resources.Get "vendor/jquery/jquery-3.3.1.min.js" }}
|
||||
{{ $index := resources.Get "js/index.js" | minify }}
|
||||
{{ $jQuery := resources.Get "/vendor/jquery/jquery-3.3.1.min.js" }}
|
||||
{{ $index := resources.Get "/js/index.js" | minify }}
|
||||
{{ $scripts := slice $jQuery $index | resources.Concat "/js/bundle.js" | fingerprint }}
|
||||
<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{ $bundleRaw := resources.Get "sass/style.sass" | resources.ExecuteAsTemplate "style/main.tmp.css" . }}
|
||||
{{ $bundleRaw := resources.Get "/sass/style.sass" | resources.ExecuteAsTemplate "/css/main.tmp.css" . }}
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
{{ $cssOpts := (dict "targetPath" "styles/main.css" "enableSourceMap" true ) }}
|
||||
{{ $cssOpts := (dict "targetPath" "/css/main.css" "enableSourceMap" true ) }}
|
||||
{{ $bundle := $bundleRaw | toCSS $cssOpts }}
|
||||
<link rel="stylesheet" href="{{ $bundle.Permalink }}" media="screen">
|
||||
{{ else }}
|
||||
{{ $cssOpts := (dict "targetPath" "styles/main.css" ) }}
|
||||
{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }}
|
||||
{{ $postCSSOpts := (dict "use" "autoprefixer" ) }}
|
||||
{{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $bundle.Permalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.js" }}
|
||||
{{ $initOwlCarousel := resources.Get "js/initOwlCarousel.js" | minify }}
|
||||
{{ $owlCarousel := resources.Get "/vendor/owlCarousel/owl.carousel.min.js" }}
|
||||
{{ $initOwlCarousel := resources.Get "/js/initOwlCarousel.js" | minify }}
|
||||
{{ $bundleOwlCarousel := slice $owlCarousel $initOwlCarousel | resources.Concat "/js/bundleOwlCarousel.js" | fingerprint }}
|
||||
|
||||
<script src="{{ $bundleOwlCarousel.Permalink }}" integrity="{{ $bundleOwlCarousel.Data.Integrity }}"></script>
|
||||
|
|
Loading…
Reference in a new issue