website/themes/cozy-hugo/layouts/partials/head.html

8 lines
656 B
HTML
Raw Normal View History

2022-11-24 11:00:36 +01:00
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
{{ $css := resources.Get "css/main.scss" | resources.ToCSS $options }}
<title>{{ if not .Page.IsHome }}{{ with .Page.Title }}{{ . }} {{ end }}{{ end }}Cozy Town</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}" type="text/css" media="screen" />
<link rel="icon" type="image/png" href="favicon.png">