simplified main menu, (maybe?) fixed preloading of css

This commit is contained in:
Vrifox 2021-03-02 11:02:13 +01:00
parent 836892e08e
commit 8c242b4aa5
Signed by: vrifox
GPG key ID: D40098E5B60B2197
8 changed files with 39 additions and 173 deletions

View file

@ -1,7 +1,7 @@
{{- define "stylesheet" -}}
{{- $scss := resources.Get "/_default/list.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}}
{{- define "main" }}