diff --git a/config.toml b/config.toml index 70b8789..27281d6 100644 --- a/config.toml +++ b/config.toml @@ -14,7 +14,7 @@ description = "Seirdy's personal website" src = "https://sr.ht/~seirdy/seirdy.one" copyright = "Copyright © 2020 Rohan Kumar" dark = "auto" -highlight = true +highlight = false [author] name = "Rohan Kumar" diff --git a/themes/etch-custom/layouts/partials/head.html b/themes/etch-custom/layouts/partials/head.html index c0becbd..adf7cc4 100644 --- a/themes/etch-custom/layouts/partials/head.html +++ b/themes/etch-custom/layouts/partials/head.html @@ -10,24 +10,19 @@ {{ end -}} - {{ $resources := slice -}} - {{ $resources = $resources | append (resources.Get "/css/main.css") -}} - {{ $resources = $resources | append (resources.Get "/css/narrow.css") -}} - {{ $dark := .Site.Params.dark | default "auto" -}} {{ if not (eq $dark "off") -}} {{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} {{ end -}} - - {{ if .Site.Params.highlight -}} - {{ $resources = $resources | append (resources.Get "css/syntax.css") -}} - {{ end -}} - {{ $css := $resources | resources.Concat "css/style.css" | minify }} {{ printf `` $css.RelPermalink | safeHTML }} + {{ if .Params.highlight -}} + {{ printf `` | safeHTML }} + {{ end -}} + {{ .Title }}