Move logic to var
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ $copyright := site.Copyright | markdownify }}
|
||||||
|
|
||||||
<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" }}
|
||||||
{{ partial "paige/footer-first.html" . }}
|
{{ partial "paige/footer-first.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with site.Copyright | markdownify }}
|
{{ with $copyright }}
|
||||||
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
|
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user