Have site footer only if needed

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

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

Loading…
Cancel
Save