From 4a5ce3fa0a039d0f652b83476c4f65a632fd9a8d Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 10 May 2023 20:32:23 +0200 Subject: [PATCH] Toevoegen van optie 'call-to-action', per pagina in te stellen --- themes/nluug/layouts/_default/baseof.html | 18 ++++++++++++++++++ .../layouts/partials/show-call-to-action.html | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 themes/nluug/layouts/partials/show-call-to-action.html diff --git a/themes/nluug/layouts/_default/baseof.html b/themes/nluug/layouts/_default/baseof.html index 490e8d1..de1596e 100644 --- a/themes/nluug/layouts/_default/baseof.html +++ b/themes/nluug/layouts/_default/baseof.html @@ -12,6 +12,24 @@ {{- block "main" . }} {{ .Content }} {{- end }} + + {{ partial "show-call-to-action.html" . }} + + {{ if isset .Params "show_child_pages" }} + {{ if eq .Params.show_child_pages true }} +
+

Relevante pagina's:

+ +
+ {{ end }} + {{ end }} + {{ if eq .Section "posts" }}
{{.Date.Format "January 2, 2006"}} ∙ diff --git a/themes/nluug/layouts/partials/show-call-to-action.html b/themes/nluug/layouts/partials/show-call-to-action.html new file mode 100644 index 0000000..4bb8e1d --- /dev/null +++ b/themes/nluug/layouts/partials/show-call-to-action.html @@ -0,0 +1,3 @@ +{{ if isset .Params "call_to_action" }} + {{ .Params.call_to_action }} +{{ end }}