From 793ab34a77b4966de6fe10b9106b90f14c02f242 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 3 Jul 2022 01:17:34 +0200 Subject: Use relative uri for stylesheets and scripts --- layouts/partials/scripts.html | 8 ++++---- layouts/partials/styles.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index dcefd62..8d51a70 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -9,17 +9,17 @@ {{- if not site.Params.assets.disable_fingerprinting -}} {{- $vendors = $vendors | fingerprint -}} - + {{- else -}} - + {{- end -}} {{- with site.GoogleAnalytics -}} {{- $ga := resources.Get "js/ga.js" | minify -}} {{- if not site.Params.assets.disable_fingerprinting -}} {{- $ga = $ga | fingerprint -}} - + {{- else -}} - + {{- end -}} {{- end -}} diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 470c476..8283883 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -4,15 +4,15 @@ {{- /* order is important */}} {{- /* to ass more styles use the following format: slice $theme $style1 $style2 $style3 ... */}} {{- $core := (slice $theme) | resources.Concat "assets/css/core.css" }} -{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} +{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "css/extended.css" }} {{- /* bundle all required css */}} {{- /* Add extended css after theme style */ -}} -{{- $stylesheet := (slice $core $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} +{{- $stylesheet := (slice $core $extended) | resources.Concat "css/stylesheet.css" | minify }} {{- if not site.Params.assets.disable_fingerprinting -}} {{- $stylesheet := $stylesheet | fingerprint }} - {{ printf `` $stylesheet.Permalink $stylesheet.Data.Integrity | safeHTML }} + {{ printf `` $stylesheet.RelPermalink $stylesheet.Data.Integrity | safeHTML }} {{- else }} - + {{- end }} -- cgit v1.2.3