Merge pull request #176 from MarekPikula/fix-custom-css

Move custom style declaration to baseof
This commit is contained in:
Guru Sabarish
2024-06-15 20:02:16 +05:30
committed by GitHub
2 changed files with 10 additions and 9 deletions
+6
View File
@@ -4,6 +4,12 @@
<head> <head>
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
{{- block "head" . }} {{- end }} {{- block "head" . }} {{- end }}
<!-- Custom Styles -->
{{ if .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
{{ end }}
<title> <title>
{{- block "title" . }} {{- end }} {{- block "title" . }} {{- end }}
</title> </title>
-5
View File
@@ -40,11 +40,6 @@
<!-- theme --> <!-- theme -->
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all">
<!-- Custom Styles -->
{{ if .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
{{ end }}
<style> <style>
:root { :root {
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }}; --text-color: {{ .Site.Params.color.textColor | default "#343a40" }};