From 64ac97b2d67226d2690d8ffa960fc436d8461eff Mon Sep 17 00:00:00 2001 From: Xin Date: Thu, 16 Nov 2023 21:03:40 -0500 Subject: [PATCH] feat: allow overriding poweredBy in footer (#207) --- layouts/partials/footer.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 756115e2..92e6d9de 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -36,9 +36,11 @@ {{- define "theme-credit" -}} - {{ . | safeHTML }} - {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" "height=1em class=\"inline-block ml-1 align-text-bottom\"") -}} + + {{- . | markdownify -}} + {{- if strings.Contains . "Hextra" -}} + {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-text-bottom"`) -}} + {{- end -}} {{- end -}}