From aef899bc54a22ab47d82db6681ce58ef91d87654 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 7 Mar 2025 15:19:02 -0800 Subject: [PATCH] theme: Add title and QR code when printing --- layouts/_default/baseof.html | 3 ++- layouts/partials/layouts/hooks/body-main-start.html | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/layouts/hooks/body-main-start.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2193dd7fb..1f4952146 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -48,7 +48,8 @@ {{ end }}
+ class="flex-1 mx-auto lg:mx-0 w-full max-w-3x lg:max-w-3x pt-8 lg:pt-14 pb-20 px-main print:pt-0"> + {{ partial "layouts/hooks/body-main-start.html" . }} {{ block "main" . }}{{ end }}
{{ block "rightsidebar" . }} diff --git a/layouts/partials/layouts/hooks/body-main-start.html b/layouts/partials/layouts/hooks/body-main-start.html new file mode 100644 index 000000000..b28dd21c8 --- /dev/null +++ b/layouts/partials/layouts/hooks/body-main-start.html @@ -0,0 +1,8 @@ +{{ if or .IsSection .IsPage }} + +{{end }}