forked from laurens/fediversity_website
Toevoegen van optie 'call-to-action', per pagina in te stellen
This commit is contained in:
parent
65f4b73c6f
commit
4a5ce3fa0a
|
@ -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> ∙
|
||||
|
|
3
themes/nluug/layouts/partials/show-call-to-action.html
Normal file
3
themes/nluug/layouts/partials/show-call-to-action.html
Normal 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 }}
|
Reference in a new issue