From 88aa5812f5e081e32853135981cf5784f6c5d5a4 Mon Sep 17 00:00:00 2001
From: Hanzei <16541325+hanzei@users.noreply.github.com>
Date: Wed, 28 Nov 2018 16:46:21 +0100
Subject: Serve hugo pipes assets with .RelPermalink (#107)
* Serve hugo pipes assets with .RelPermalink
* Rebuild docs
---
layouts/partials/css/owlCarousel.html | 2 +-
layouts/partials/footer/scripts.html | 2 +-
layouts/partials/head/css.html | 6 +++---
layouts/partials/js/owlCarousel.html | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'layouts')
diff --git a/layouts/partials/css/owlCarousel.html b/layouts/partials/css/owlCarousel.html
index d42e685..d5e030d 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" }}
{{ $owlCarouselBundle := slice $owlCarousel $owlCarouselTheme | resources.Concat "/styles/owlCarousel.min.css" | fingerprint }}
-
+
diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html
index 77fa926..2ad1fda 100644
--- a/layouts/partials/footer/scripts.html
+++ b/layouts/partials/footer/scripts.html
@@ -1,6 +1,6 @@
{{ $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 }}
-
+
{{ template "_internal/google_analytics_async.html" . }}
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
index 0b3f461..28d8d91 100644
--- a/layouts/partials/head/css.html
+++ b/layouts/partials/head/css.html
@@ -3,16 +3,16 @@
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "/css/main.css" "enableSourceMap" true ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts }}
-
+
{{ else }}
{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }}
{{ $postCSSOpts := (dict "use" "autoprefixer" ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }}
-
+
{{ end }}
{{ range .Site.Params.customCSS -}}
{{ $style := resources.Get . }}
-
+
{{- end }}
diff --git a/layouts/partials/js/owlCarousel.html b/layouts/partials/js/owlCarousel.html
index 5ffb506..62d16e9 100644
--- a/layouts/partials/js/owlCarousel.html
+++ b/layouts/partials/js/owlCarousel.html
@@ -1,4 +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 }}
-
+
--
cgit v1.2.3