Move href to var

master
Will Faught 2 years ago
parent d0d7ac452f
commit 7504ba839a

@ -1,6 +1,7 @@
{{ $page := . }} {{ $page := . }}
{{ $copyright := site.Copyright | markdownify }} {{ $copyright := site.Copyright | markdownify }}
{{ $href := "https://github.com/willfaught/paige" }}
<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" }}
@ -12,7 +13,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="https://github.com/willfaught/paige" {{ with partial "paige/target.html" (dict "page" $page "url" "https://github.com/willfaught/paige") }} target="{{ . }}" {{ end }}>Paige Theme</a> <a class="link-secondary text-decoration-none" href="{{ $href }}" {{ with partial "paige/target.html" (dict "page" $page "url" $href) }} 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