Move static resources to static/ and do not minify the CSS
This commit is contained in:
parent
ce1c860269
commit
173ae928f8
12 changed files with 3 additions and 8 deletions
|
@ -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) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue