From 0471b5f34802ed9f6f46b1db38e05902a7baf185 Mon Sep 17 00:00:00 2001 From: jtbx Date: Sat, 27 Jan 2024 22:25:42 +0100 Subject: [PATCH] Theme: Use internal picocss --- themes/ccchh/layouts/partials/head.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/themes/ccchh/layouts/partials/head.html b/themes/ccchh/layouts/partials/head.html index 7b8744b..0cbca28 100644 --- a/themes/ccchh/layouts/partials/head.html +++ b/themes/ccchh/layouts/partials/head.html @@ -1,13 +1,14 @@ -{{- $options := dict "transpiler" "libsass" "targetPath" "css/style.css" -}} +{{- $cssOptionsMain := dict "transpiler" "libsass" "targetPath" "css/style.css" -}} +{{- $cssOptionsPico := dict "transpiler" "libsass" "targetPath" "css/pico.css" -}} {{- $jsResources := resources.Match "js/*.js" }} {{- partial "robots.html" . -}} - {{- with resources.GetRemote "https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css" }} - - {{ end }} - {{ with resources.Get "sass/main.scss" | toCSS $options | minify | fingerprint -}} + {{ with resources.Get "pico-1.5.11/scss/pico.scss" | toCSS $cssOptionsPico | minify | fingerprint -}} + + {{- end }} + {{ with resources.Get "sass/main.scss" | toCSS $cssOptionsMain | minify | fingerprint -}} {{- end }}