websites/layouts/partials/head.html

17 lines
595 B
HTML
Raw Normal View History

2023-06-15 12:17:18 +02:00
<meta charset="utf-8" />
<title>
{{ .Title }}
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ .Description }}" />
{{/* styles */}}
{{ $options := dict "inlineImports" true }}
{{ $styles := resources.Get "styles/styles.css" }}
{{ $styles = $styles | resources.PostCSS $options }}
{{ if hugo.IsProduction }}
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
{{/* {{ else }}
<link href="/tailwindcss.css" rel="stylesheet" /> */}}
{{ end }}
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />