mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-22 17:45:06 +01:00
33 lines
1.5 KiB
HTML
33 lines
1.5 KiB
HTML
<head>
|
|
<title>{{ .Site.Title }}</title>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
{{ if .Site.Params.favicon }}
|
|
{{ partial "favicon" }}
|
|
{{ end }}
|
|
|
|
<!-- CSS -->
|
|
{{ if .Site.IsServer }}
|
|
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
|
|
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
|
{{ else }}
|
|
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
|
|
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
|
|
{{ end }}
|
|
{{ if .Site.IsServer }}
|
|
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
|
|
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
|
|
{{ else }}
|
|
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
|
|
<noscript><link rel="stylesheet" href="{{ ($noscript | minify).RelPermalink }}" /></noscript>
|
|
{{end}}
|
|
|
|
<!-- FontAwesome CSS -->
|
|
{{ range .Site.Params.asset.fontawesome_css -}}
|
|
<link rel="stylesheet" href="{{ . | absURL }}">
|
|
{{- end }}
|
|
|
|
</head>
|