Have site footer only if needed

master
Will Faught 12 months ago
parent 45174b4ce8
commit 272f094f36

@ -15,28 +15,26 @@
{{ $credit = markdownify $credit }} {{ $credit = markdownify $credit }}
{{ end }} {{ end }}
<footer class="my-3" id="paige-site-footer"> {{ if or $copyright $credit $first $last $license }}
{{ if $first }} <footer class="my-3" id="paige-site-footer">
{{ partial "paige/footer-first.html" . }} {{ if $first }}
{{ end }} {{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if or $copyright $credit $license }}
<div class="mb-3" id="paige-site-footer"> {{ with $copyright }}
{{ with $copyright }} <p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p> {{ end }}
{{ end }}
{{ with $license }}
{{ with $license }} <p class="mb-0 text-center text-secondary" id="paige-license">{{ . }}</p>
<p class="mb-0 text-center text-secondary" id="paige-license">{{ . }}</p> {{ end }}
{{ end }}
{{ with $credit }}
{{ with $credit }} <p class="mb-0 text-center text-secondary" id="paige-credit">{{ . }}</p>
<p class="mb-0 text-center text-secondary" id="paige-credit">{{ . }}</p> {{ end }}
{{ end }}
</div> {{ if $last }}
{{ end }} {{ partial "paige/footer-last.html" . }}
{{ end }}
{{ if $last }} </footer>
{{ partial "paige/footer-last.html" . }} {{ end }}
{{ end }}
</footer>

Loading…
Cancel
Save