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-19 16:33:29 +0300
committerHanzei <hanzei@mailbox.org>2018-07-19 16:33:29 +0300
commit9125225a21e426ccf7392ff0d86b2b37c6b005ee (patch)
tree69de981122bede1c0c1caf5c49eb407bf8ab9a1a /layouts/projects
parent2246ec73706055d8c3db149bda0f1dd387ba9e7e (diff)
Add owlCarousel to homepage modal
Diffstat (limited to 'layouts/projects')
-rw-r--r--layouts/projects/single.html19
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 }}