w2ng/themes/hugo-w2ng/layouts/partials/head.html
2020-01-05 08:39:24 +08:00

8 lines
533 B
HTML

{{ if .Site.IsServer }}
{{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/dev/postcss.config.js") }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ else }}
{{ $style := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">