6
0
Fork 0

Toevoegen van optie 'call-to-action', per pagina in te stellen

This commit is contained in:
Michael Boelen 2023-05-10 20:32:23 +02:00
parent 65f4b73c6f
commit 4a5ce3fa0a
2 changed files with 21 additions and 0 deletions

View file

@ -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 }}
<section>
<p>Relevante pagina's:</p>
<ul>
{{ range .Pages }}
<li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | default "Geen titel" }}</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}
{{ end }}
{{ if eq .Section "posts" }}
<div class="post-date">
<span class="g time">{{.Date.Format "January 2, 2006"}} </span> &#8729;

View file

@ -0,0 +1,3 @@
{{ if isset .Params "call_to_action" }}
<a class="button" href="{{ .Params.call_to_action_url }}">{{ .Params.call_to_action }}</a>
{{ end }}