Use relative URL for stylesheet

This commit is contained in:
Jez Cope 2021-04-02 12:04:51 +01:00
parent 8c6ce24ed2
commit 3240ffb9d0
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ $style := resources.Get "style/main.scss" | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<link rel="stylesheet" href="{{ $style.Permalink | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}