Refactor scss to minimize resulting css

This commit is contained in:
Vri 🌈 2023-01-15 00:19:35 +01:00
parent 8d154d444e
commit 190c0acf7f
Signed by: vrifox
GPG key ID: D40098E5B60B2197
23 changed files with 78 additions and 25 deletions

View file

@ -1,3 +1,9 @@
{{- define "stylesheet" -}}
{{- $scss := resources.Get "/scss/home.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}}
{{- define "header" }}
<header id="introduction" class="global-header">
<h1>{{ i18n "introduction-heading" }}</h1>