summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-21 14:20:35 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-21 14:20:35 +0530
commit15d7a4aabdf71ac85d88dd08eda27e5306d853fe (patch)
treef5332cb21ba6d16819419bee298361be110f3bf0 /layouts
parenta0720675754dc8e786871440317090677f2e2dfa (diff)
assets: separate style.css into parts
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 55042bc..a660da3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -13,7 +13,15 @@
{{- end }}
<!-- Styles -->
{{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
-{{ $style := resources.Get "style.css" | minify }}
+{{ $theme := resources.Get "css/theme-vars.css" | minify }}
+{{ $reset := resources.Get "css/reset.css" | minify }}
+{{ $header := resources.Get "css/header.css" | minify }}
+{{ $main := resources.Get "css/main.css" | minify }}
+{{ $postentry := resources.Get "css/post-entry.css" | minify }}
+{{ $postsingle := resources.Get "css/post-single.css" | minify }}
+{{ $footer := resources.Get "css/footer.css" | minify }}
+{{ $404 := resources.Get "css/404.css" | minify }}
+{{ $style := slice $theme $reset $header $main $postentry $postsingle $footer $404 | resources.Concat "stylesheet.css" | minify }}
{{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify | fingerprint }}
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="stylesheet">
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">