From 39d7488adde0313c9e3ce7a806fc877896e7c625 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 12 Nov 2024 12:44:48 +0000 Subject: [PATCH] Add Call-to-Action support at top of content --- themes/nluug/layouts/_default/baseof.html | 1 + .../show-call-to-action-top-of-content.html | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 themes/nluug/layouts/partials/show-call-to-action-top-of-content.html diff --git a/themes/nluug/layouts/_default/baseof.html b/themes/nluug/layouts/_default/baseof.html index 53b24ff..8cf1196 100644 --- a/themes/nluug/layouts/_default/baseof.html +++ b/themes/nluug/layouts/_default/baseof.html @@ -9,6 +9,7 @@ {{ partialCached "header.html" . }} {{ partial "breadcrumb.html" . }}
+ {{ partial "show-call-to-action-top-of-content.html" . }}

{{ .Title }}

{{- block "main" . }} diff --git a/themes/nluug/layouts/partials/show-call-to-action-top-of-content.html b/themes/nluug/layouts/partials/show-call-to-action-top-of-content.html new file mode 100644 index 0000000..a48046f --- /dev/null +++ b/themes/nluug/layouts/partials/show-call-to-action-top-of-content.html @@ -0,0 +1,31 @@ +{{ if .Params.call_to_action_top_of_content }} +{{ $context := . }} +