Move custom_css into writing template only.

This commit is contained in:
2026-04-19 00:36:18 -07:00
parent 7d26aeff65
commit cb73f4e7a5
2 changed files with 9 additions and 8 deletions

View File

@@ -2,9 +2,17 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{- partial "head.html" . -}}
{{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $writingcss.Permalink }}">
{{- partial "head.html" . -}}
{{ if .Params.custom_css }}
{{ range $customCss := .Params.custom_css }}
{{ $renderedCustomCss := page.Resources.Get $customCss | css.Sass (dict "includePaths" (slice "themes/vanilla/assets/scss")) | resources.Minify }}
<link rel="stylesheet" href="{{ $renderedCustomCss.Permalink }}">
{{ end }}
{{ end }}
</head>
<body>
{{ with .Params.body_start_partial }}