landingpage/themes/app-landingpage/layouts/partials/head.html

33 lines
1.1 KiB
HTML
Raw Normal View History

2022-08-06 20:25:26 +02:00
<head>
<meta charset="utf-8" />
{{ with .Description }}
<meta name="description" content="{{ . }}" />
{{ else }}
<meta name="description" content="{{ .Site.Params.default_description }}" />
{{ end }}
{{ hugo.Generator }}
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="referrer" content="no-referrer" />
<meta name="robots" content="noindex" />
<!-- Styles -->
{{ $scssStyles := (slice "style" ) }}
{{ range $scssStyles }}
{{ $scssOptions := (dict "targetPath" (print "/css/compiled/" . ".css") "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get (print "/scss/" . ".scss") | resources.ToCSS $scssOptions }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ end }}
<title>
{{ block "title" . }}
{{ if .IsHome }}
{{- .Title }}
{{ else }}
{{- .Title }} - {{ .Site.Title -}}
{{ end }}
{{ end }}
</title>
</head>