Browse Source

add preload so css loads faster

master
Adam Veldhousen 1 month ago
parent
commit
f4b21edefc
Signed by: Adam Veldhousen <adamveld12@gmail.com> GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      layouts/_default/baseof.html

+ 2
- 0
layouts/_default/baseof.html View File

@@ -12,6 +12,8 @@
<title>{{ .Title }}</title>

{{ $style := resources.Get (printf "css/colors-%s.scss" (.Site.Params.scheme | default "dark")) | toCSS | minify | fingerprint }}
<link rel="preload" href="{{ $style.Permalink }}" as="style">

<link rel="stylesheet" href="{{ $style.Permalink }}">

{{ partial "head.html" . }}

Loading…
Cancel
Save