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 <16541325+hanzei@users.noreply.github.com>2018-11-28 18:46:21 +0300
committerGitHub <noreply@github.com>2018-11-28 18:46:21 +0300
commit88aa5812f5e081e32853135981cf5784f6c5d5a4 (patch)
tree2d92a9f6a1a29a4c33abfcca470ac57607a0b96f /layouts
parentdfe920cc2a0c4b46bc521776613e8e26822894ce (diff)
Serve hugo pipes assets with .RelPermalink (#107)
* Serve hugo pipes assets with .RelPermalink * Rebuild docs
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/css/owlCarousel.html2
-rw-r--r--layouts/partials/footer/scripts.html2
-rw-r--r--layouts/partials/head/css.html6
-rw-r--r--layouts/partials/js/owlCarousel.html2
4 files changed, 6 insertions, 6 deletions
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 }}
-<link rel="stylesheet" href="{{ $owlCarouselBundle.Permalink }}" integrity="{{ $owlCarouselBundle.Data.Integrity }}" media="screen">
+<link rel="stylesheet" href="{{ $owlCarouselBundle.RelPermalink }}" integrity="{{ $owlCarouselBundle.Data.Integrity }}" media="screen">
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 }}
-<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
+<script src="{{ $scripts.RelPermalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
{{ 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 }}
-<link rel="stylesheet" href="{{ $bundle.Permalink }}" media="screen">
+<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" media="screen">
{{ else }}
{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }}
{{ $postCSSOpts := (dict "use" "autoprefixer" ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }}
-<link rel="stylesheet" href="{{ $bundle.Permalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen">
+<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen">
{{ end }}
<!-- Custom css -->
{{ range .Site.Params.customCSS -}}
{{ $style := resources.Get . }}
- <link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
{{- 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 }}
-<script src="{{ $bundleOwlCarousel.Permalink }}" integrity="{{ $bundleOwlCarousel.Data.Integrity }}"></script>
+<script src="{{ $bundleOwlCarousel.RelPermalink }}" integrity="{{ $bundleOwlCarousel.Data.Integrity }}"></script>