refactor(resources): use relative links (#245)

This commit is contained in:
Florian La Roche 2020-04-19 20:10:40 +02:00 committed by GitHub
parent 3788f6d46d
commit fa5f2aed89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
<!-- Styles --> <!-- Styles -->
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }} {{ $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.publicCDN.enable -}}
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }} {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
{{- else -}} {{- else -}}

View file

@ -70,7 +70,7 @@
{{ $even := resources.Get "js/even.js" }} {{ $even := resources.Get "js/even.js" }}
{{ $main := resources.Get "js/main.js" }} {{ $main := resources.Get "js/main.js" }}
{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }} {{ $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) }} {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
<script type="text/javascript"> <script type="text/javascript">