Remove useless vars

master
Will Faught 2 years ago
parent fcdefec8c2
commit 304f98bfc5

@ -1,23 +1,17 @@
{{ $page := . }} {{ $page := . }}
{{ $copyright := site.Copyright | markdownify }} <footer id="paige-footer">
{{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ if templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }} {{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if or $copyright $first $last }} {{ with site.Copyright | markdownify }}
<footer id="paige-footer"> <p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ if $first }} {{ end }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ with $copyright }} <p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige" id="paige-credit">Paige Theme</a></p>
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ end }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige" id="paige-credit">Paige Theme</a></p> {{ if templates.Exists "partials/paige/footer-last.html" }}
{{ partial "paige/footer-last.html" . }}
{{ if $last }} {{ end }}
{{ partial "paige/footer-last.html" . }} </footer>
{{ end }}
</footer>
{{ end }}

Loading…
Cancel
Save