diff options
author | Florian La Roche <florian.laroche@gmail.com> | 2020-04-19 20:10:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 02:10:40 +0800 |
commit | fa5f2aed895cc3616a2b9af4fdc00c1218c8bd64 (patch) | |
tree | 4fc37336daac61631bb061a32051cf495f0728f1 /layouts/partials | |
parent | 3788f6d46d8a473e389a935367002b698315da2a (diff) |
refactor(resources): use relative links (#245)
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7a9f3ea..483339d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -62,7 +62,7 @@ <!-- Styles --> {{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }} -<link href="{{ $style.Permalink }}" rel="stylesheet"> +<link href="{{ $style.RelPermalink }}" rel="stylesheet"> {{ if .Site.Params.publicCDN.enable -}} {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }} {{- else -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 16cec74..18b0e30 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -70,7 +70,7 @@ {{ $even := resources.Get "js/even.js" }} {{ $main := resources.Get "js/main.js" }} {{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }} -<script type="text/javascript" src="{{ $js.Permalink }}"></script> +<script type="text/javascript" src="{{ $js.RelPermalink }}"></script> {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} <script type="text/javascript"> |