Use real absURL (#36)

This commit is contained in:
Stefan M
2018-11-24 12:18:49 +01:00
committed by Luc Perkins
parent 3b52fc46e4
commit 0bcb156249

View File

@@ -5,7 +5,7 @@
{{- $fontFace := replace .Site.Params.font.name " " "+" }} {{- $fontFace := replace .Site.Params.font.name " " "+" }}
{{- $fontSizes := delimit .Site.Params.font.sizes "," }} {{- $fontSizes := delimit .Site.Params.font.sizes "," }}
{{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }} {{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }}
<link rel="icon" type="image/png" href="{{ "/images/favicon.png" | absURL }}" /> <link rel="icon" type="image/png" href="{{ "images/favicon.png" | absURL }}" />
<link href="{{ $fontUrl }}" rel="stylesheet"> <link href="{{ $fontUrl }}" rel="stylesheet">
{{- if $inServerMode }} {{- if $inServerMode }}
{{- $css := resources.Get $sass | toCSS $cssOpts }} {{- $css := resources.Get $sass | toCSS $cssOpts }}
@@ -14,4 +14,4 @@
{{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }} {{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}"> <link rel="stylesheet" type="text/css" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
{{- end }} {{- end }}
<link rel="stylesheet" type="text/css" href="{{ "/css/icons.css" | absURL }}"> <link rel="stylesheet" type="text/css" href="{{ "css/icons.css" | absURL }}">