Split orange theme out into its own stylesheet

This commit is contained in:
James Panther
2019-10-28 12:51:13 +11:00
parent f8fa62605d
commit 1b5d9d3c1a
16 changed files with 22 additions and 46 deletions
+1 -4
View File
@@ -6,10 +6,7 @@
<link rel="canonical" href="{{ .Permalink }}" />
<!-- Theme CSS -->
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">
{{ if (ne $.Site.Params.ThemeColor "orange") }}
<link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}">
{{ end }}
<link rel="stylesheet" href="{{ with $.Site.Params.ThemeColor | default "orange" }}{{ printf "assets/%s.css" . | absURL }}{{ end }}">
<!-- Custom CSS to override theme properties (/static/style.css) -->
{{ if (fileExists "static/style.css") -}}