Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-26 20:34:02 +0300
committerHanzei <hanzei@mailbox.org>2018-07-26 23:43:35 +0300
commit1cc7ddd7cde36b0d67137c6f53018edd6bf5a5d9 (patch)
tree9824ee37c2d959de58eb24a1c24cad0da8147ac6 /layouts
parent5687d97c7871844a0a41d54325aa4dff54f6443e (diff)
Canonify owlCarousel css path
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer/scripts.html4
-rw-r--r--layouts/partials/head/css.html6
-rw-r--r--layouts/partials/js/owlCarousel.html4
3 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html
index e3533d4..77fa926 100644
--- a/layouts/partials/footer/scripts.html
+++ b/layouts/partials/footer/scripts.html
@@ -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>
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
index 0079b5f..0b3f461 100644
--- a/layouts/partials/head/css.html
+++ b/layouts/partials/head/css.html
@@ -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">
diff --git a/layouts/partials/js/owlCarousel.html b/layouts/partials/js/owlCarousel.html
index 34fb45e..36743f1 100644
--- a/layouts/partials/js/owlCarousel.html
+++ b/layouts/partials/js/owlCarousel.html
@@ -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>