Have site footer only if needed
This commit is contained in:
@@ -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 }}
|
{{ with $copyright }}
|
||||||
<div class="mb-3" id="paige-site-footer">
|
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
|
||||||
{{ with $copyright }}
|
{{ end }}
|
||||||
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
|
|
||||||
{{ 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>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if $last }}
|
{{ if $last }}
|
||||||
{{ partial "paige/footer-last.html" . }}
|
{{ partial "paige/footer-last.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user