From 5164e7e0fdb547b9ad29f1913cedccbab5461af6 Mon Sep 17 00:00:00 2001 From: Ivan Todinov Date: Fri, 4 Oct 2019 18:33:30 +0300 Subject: [PATCH] Use relURL for static assets This removes the need for setting base URL for the website. --- layouts/partials/css.html | 4 ++-- layouts/partials/javascript.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/css.html b/layouts/partials/css.html index 04f4ceb..839d3fb 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -5,7 +5,7 @@ {{- $fontFace := replace .Site.Params.font.name " " "+" }} {{- $fontSizes := delimit .Site.Params.font.sizes "," }} {{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }} - + {{- if $inServerMode }} {{- $css := resources.Get $sass | toCSS $cssOpts }} @@ -14,4 +14,4 @@ {{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }} {{- end }} - + diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 7eefa8c..05b93cf 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -1,5 +1,5 @@ - - + + \ No newline at end of file