From 7af4fe77166e646bd31138b000c3b89c3a1901e6 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 10 Feb 2022 02:04:01 -0500 Subject: [PATCH] (GH-35) Inject CSS into body of _default/baseof.html This commit modifies the `_default/baseof.html` template to inject a CSS class into the `body` tag, enabling Platen site maintainers to override the styling for any page(s) via this mechanism. This is a patch on top of the `layouts/_default/baseof.html` file from the usptream project (alex-shpak/hugo-book). If the upstream file is updated, we will need to replace our copy of the template with the newer version and then cherry-pick this commit on top. --- layouts/_default/baseof.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 49a3121..ce83ae5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,8 @@ {{ partial "docs/html-head" . }} {{ partial "docs/inject/head" . }} - +{{ $injectedClass := partial "platen/getCssClass.html" . }} +