forked from Git/hugo-story
1
0
Fork 0
agr.asia/exampleSite/layouts/partials/head.html

33 lines
1.5 KiB
HTML
Raw Normal View History

2020-07-02 07:05:45 +02:00
<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 }}
2023-01-19 00:59:02 +01:00
{{ partial "favicon" }}
2020-07-02 07:05:45 +02:00
{{ end }}
2023-01-19 00:59:02 +01:00
2020-07-02 07:05:45 +02:00
<!-- CSS -->
{{ if .Site.IsServer }}
2023-01-19 00:59:02 +01:00
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
2020-07-02 07:05:45 +02:00
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
2023-01-19 00:59:02 +01:00
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
2020-07-02 07:05:45 +02:00
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
{{ end }}
{{ if .Site.IsServer }}
2023-01-19 00:59:02 +01:00
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
2020-07-02 07:05:45 +02:00
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
{{ else }}
2023-01-19 00:59:02 +01:00
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
2020-07-02 07:05:45 +02:00
<noscript><link rel="stylesheet" href="{{ ($noscript | minify).RelPermalink }}" /></noscript>
{{end}}
2023-01-19 00:59:02 +01:00
<!-- FontAwesome CSS -->
{{ range .Site.Params.asset.fontawesome_css -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
2020-07-02 07:05:45 +02:00
</head>