Have site footer only if needed
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user