diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3264b91b..ff5cdd5a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,8 +11,8 @@ -{{- if in site.Params.mainSections .Type }} -{{- $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}} +{{ if in site.Params.mainSections .Type }} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint -}} {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 685548f2..5b5df657 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,23 +17,23 @@ {{- end}} -{{- $anoldhope := resources.Get "css/an-old-hope.min.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 }} -{{- $terms := resources.Get "css/terms.css" | minify }} -{{- $archive := resources.Get "css/archive.css" | minify }} -{{- $footer := resources.Get "css/footer.css" | minify }} -{{- $404 := resources.Get "css/404.css" | minify }} -{{- $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" | minify }} -{{- $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint -}} +{{- $anoldhope := resources.Get "css/an-old-hope.min.css" }} +{{- $theme := resources.Get "css/theme-vars.css" }} +{{- $reset := resources.Get "css/reset.css" }} +{{- $header := resources.Get "css/header.css" }} +{{- $main := resources.Get "css/main.css" }} +{{- $postentry := resources.Get "css/post-entry.css" }} +{{- $postsingle := resources.Get "css/post-single.css" }} +{{- $terms := resources.Get "css/terms.css" }} +{{- $archive := resources.Get "css/archive.css" }} +{{- $footer := resources.Get "css/footer.css" }} +{{- $404 := resources.Get "css/404.css" }} +{{- $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" }} +{{- $stylesheet := slice $anoldhope $style | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}} {{- if (and (.Site.Params.profileMode.enabled) (.IsHome)) }} -{{- $profileMode := resources.Get "css/profile-mode.css" | minify | fingerprint }} +{{- $profileMode := slice (resources.Get "css/profile-mode.css") | resources.Concat "assets/css/profile-mode.css" | minify | fingerprint }} {{- end -}}