From b49da022f8644d05d6c71463afefd563d0af77b6 Mon Sep 17 00:00:00 2001 From: a Date: Mon, 17 Oct 2022 10:02:26 -0500 Subject: [PATCH] support hugo templates in scss --- assets/styles/features/links.scss | 3 +-- layouts/_default/baseof.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/styles/features/links.scss b/assets/styles/features/links.scss index 525e385..390781f 100644 --- a/assets/styles/features/links.scss +++ b/assets/styles/features/links.scss @@ -42,5 +42,4 @@ a[href^="{{.Site.BaseURL}}"]:after a[href^="http://localhost"]:after { display: none !important; -} - +} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 74ef541..811b5be 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,12 +5,12 @@ -{{ $screen := resources.Get "styles/screen.scss" | toCSS | minify | fingerprint }} +{{ $screen := resources.Get "styles/screen.scss" | resources.ExecuteAsTemplate "style.screen.scss" . | toCSS | minify | fingerprint }} -{{ $print := resources.Get "styles/print.scss" | toCSS | minify | fingerprint }} +{{ $print := resources.Get "styles/print.scss" | resources.ExecuteAsTemplate "style.print.scss" . | toCSS | minify | fingerprint }}