From fbae23fd21bedd2752a914cf773d7563b00991eb Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 26 Nov 2019 21:54:04 +0100 Subject: [PATCH] Support params.css. --- layouts/_default/baseof.html | 10 +++++++++- static/assets/{style.css => nocolor.css} | 0 2 files changed, 9 insertions(+), 1 deletion(-) rename static/assets/{style.css => nocolor.css} (100%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d98748d..cfc713a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,7 +16,15 @@ {{- $favicon := .Site.Params.favicon | default "favicon.ico" }} {{- $favtype := cond (eq (path.Ext $favicon) ".png") "image/png" "image/x-icon" }} - + + {{- with .Site.Params.css }} + {{- if resources.Get . }} + {{- $styleCustom := resources.Get . | resources.Fingerprint }} + + {{- else if fileExists (path.Join "static" .) }} + + {{- end }} + {{- end }} {{ partial "extra_head.html" . }} diff --git a/static/assets/style.css b/static/assets/nocolor.css similarity index 100% rename from static/assets/style.css rename to static/assets/nocolor.css