Move static resources to static/ and do not minify the CSS

This commit is contained in:
Eryn Wells 2021-10-11 12:40:25 -07:00
parent ce1c860269
commit 173ae928f8
12 changed files with 3 additions and 8 deletions

View file

@ -15,15 +15,10 @@
<meta name="author" content="{{ site.Author.name }}" />
{{ end }}
<!-- Styles & Scripts -->
{{ $app_css := resources.Get "app.css" }}
{{ $custom_css := resources.Get "style.css" }}
{{ $css := slice $app_css $custom_css | resources.Concat "app.css" | minify }}
<link rel="preload stylesheet" as="style" href="{{ $css.Permalink }}" />
<link rel="preload stylesheet" as="style" href="/app.css" />
<link rel="preload stylesheet" as="style" href="/style.css" />
{{ if .IsHome }}
{{ $home_css := resources.Get "home.css" }}
<link rel="preload stylesheet" as="style" href="{{ $home_css.Permalink }}" />
<link rel="preload stylesheet" as="style" href="/home.css" />
{{ end }}
{{ if and .IsPage (not site.Params.disableHLJS) }}