From da2406082bfedc6c868ff76b129fe8f5004c1cb7 Mon Sep 17 00:00:00 2001 From: Spedon Date: Thu, 9 Mar 2023 17:07:08 +0800 Subject: [PATCH] import css and js --- layouts/partials/head.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..f71aec1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,8 @@ +{{- $fingerprint := .Scratch.Get "fingerprint" | default "" -}} +{{- $style := dict "Source" "css/style.scss" "Fingerprint" $fingerprint -}} +{{- $options := dict "targetPath" "css/style.min.css" "enableSourceMap" true -}} +{{- $style = dict "Context" . "ToCSS" $options | merge $style -}} +{{- partial "plugin/style.html" $style -}} + +{{ $js := resources.Get "js/theme.js" }} + \ No newline at end of file