Move target to var

master
Will Faught 2 years ago
parent 7504ba839a
commit a09bbcd5cf

@ -2,6 +2,7 @@
{{ $copyright := site.Copyright | markdownify }} {{ $copyright := site.Copyright | markdownify }}
{{ $href := "https://github.com/willfaught/paige" }} {{ $href := "https://github.com/willfaught/paige" }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $href) }}
<footer class="mb-3" id="paige-footer"> <footer class="mb-3" id="paige-footer">
{{ if templates.Exists "partials/paige/footer-first.html" }} {{ if templates.Exists "partials/paige/footer-first.html" }}
@ -13,7 +14,7 @@
{{ end }} {{ end }}
<p class="mb-0 text-center" id="paige-credit"> <p class="mb-0 text-center" id="paige-credit">
<a class="link-secondary text-decoration-none" href="{{ $href }}" {{ with partial "paige/target.html" (dict "page" $page "url" $href) }} target="{{ . }}" {{ end }}>Paige Theme</a> <a class="link-secondary text-decoration-none" href="{{ $href }}" {{ with $target }} target="{{ . }}" {{ end }}>Paige Theme</a>
</p> </p>
{{ if templates.Exists "partials/paige/footer-last.html" }} {{ if templates.Exists "partials/paige/footer-last.html" }}

Loading…
Cancel
Save