diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-19 16:33:29 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-19 16:33:29 +0300 |
commit | 9125225a21e426ccf7392ff0d86b2b37c6b005ee (patch) | |
tree | 69de981122bede1c0c1caf5c49eb407bf8ab9a1a /layouts/projects | |
parent | 2246ec73706055d8c3db149bda0f1dd387ba9e7e (diff) |
Add owlCarousel to homepage modal
Diffstat (limited to 'layouts/projects')
-rw-r--r-- | layouts/projects/single.html | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/layouts/projects/single.html b/layouts/projects/single.html index 557aa98..500a087 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -30,24 +30,9 @@ {{ end }} {{ define "customCSS" }} -{{ $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"> +{{ partial "css/owlCarousel.html" . }} {{ end }} {{ define "customScripts" }} -{{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.js" | fingerprint }} -<script src="{{ $owlCarousel.Permalink }}" integrity="{{ $owlCarousel.Data.Integrity }}"></script> -<script> - $(document).ready(function(){ - $(".owl-carousel").owlCarousel({ - loop: true, - nav: true, - margin: 10, - items: 1, - autoHeight: true - }); - }); -</script> +{{ partial "js/owlCarousel.html" . }} {{ end }} |