From 9b794f661f975fe40dbbde68b0e9ff65bdb42eea Mon Sep 17 00:00:00 2001 From: Ilia Ross <4426533+iliajie@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:19:46 +0300 Subject: [PATCH] Add ability to load more partials in header without copying it Hello, It would be great to have these small improvements, so we don't have to change upstream (PaperMod) files. --- layouts/partials/header.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4a7291e..3db7b6d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -40,6 +40,9 @@ {{- end }}
+ {{ if templates.Exists "partials/extend_header_before.html" }} + {{- partial "extend_header_before.html" . -}} + {{ end }} + {{ if templates.Exists "partials/extend_header_after.html" }} + {{- partial "extend_header_after.html" . -}} + {{ end }}