Move static resources to static/ and do not minify the CSS
|
@ -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) }}
|
||||
|
|
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 703 B |