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-27 02:29:33 +0300
committerHanzei <hanzei@mailbox.org>2018-07-27 02:30:03 +0300
commit757bd376e3226d5b9131c5650fac91e69103b1e7 (patch)
treeeee719a1f10a1586b2afc0b602317077d3a72361 /layouts
parent5acfe4a773607b50f99e24ce7cad5dde1f321007 (diff)
Fix more assets paths
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html8
-rw-r--r--layouts/partials/css/owlCarousel.html4
-rw-r--r--layouts/partials/js/owlCarousel.html1
3 files changed, 6 insertions, 7 deletions
diff --git a/layouts/index.html b/layouts/index.html
index e192241..802177d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -109,10 +109,10 @@
{{ partial "js/owlCarousel.html" . }}
{{ if .Site.Params.home.localTime }}
- {{ $momentjs := resources.Get "vendor/momentjs/moment.min.js" }}
- {{ $momentTimezone := resources.Get "vendor/momentjs/moment-timezone.min.js" }}
- {{ $momentTimezoneWithData := resources.Get "vendor/momentjs/moment-timezone-with-data-2012-2022.min.js" }}
- {{ $initMomentjs := resources.Get "js/initMoment.js" | resources.ExecuteAsTemplate "js/initMoment.tmp.js" . }}
+ {{ $momentjs := resources.Get "/vendor/momentjs/moment.min.js" }}
+ {{ $momentTimezone := resources.Get "/vendor/momentjs/moment-timezone.min.js" }}
+ {{ $momentTimezoneWithData := resources.Get "/vendor/momentjs/moment-timezone-with-data-2012-2022.min.js" }}
+ {{ $initMomentjs := resources.Get "/js/initMoment.js" | resources.ExecuteAsTemplate "js/initMoment.tmp.js" . }}
{{ $bundleMoment := slice $momentjs $momentTimezone $momentTimezoneWithData $initMomentjs | resources.Concat "/js/bundleMoment.js" | fingerprint }}
<script src="{{ $bundleMoment.Permalink }}" integrity="{{ $bundleMoment.Data.Integrity }}"></script>
{{ end }}
diff --git a/layouts/partials/css/owlCarousel.html b/layouts/partials/css/owlCarousel.html
index 1a1368b..96a0669 100644
--- a/layouts/partials/css/owlCarousel.html
+++ b/layouts/partials/css/owlCarousel.html
@@ -1,4 +1,4 @@
-{{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.css" }}
-{{ $owlCarouselTheme := resources.Get "vendor/owlCarousel/owl.theme.default.min.css" }}
+{{ $owlCarousel := resources.Get "/vendor/owlCarousel/owl.carousel.min.css" }}
+{{ $owlCarouselTheme := resources.Get "/vendor/owlCarousel/owl.theme.default.min.css" }}
{{ $owlCarouselBundle := slice $owlCarousel $owlCarouselTheme | resources.Concat "/css/owlCarousel.min.css" | fingerprint }}
<link rel="stylesheet" href="{{ $owlCarouselBundle.Permalink }}" integrity="{{ $owlCarouselBundle.Data.Integrity }}" media="screen">
diff --git a/layouts/partials/js/owlCarousel.html b/layouts/partials/js/owlCarousel.html
index 36743f1..5ffb506 100644
--- a/layouts/partials/js/owlCarousel.html
+++ b/layouts/partials/js/owlCarousel.html
@@ -1,5 +1,4 @@
{{ $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>