mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
Fix more assets paths
This commit is contained in:
parent
5acfe4a773
commit
757bd376e3
3 changed files with 6 additions and 7 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue