Use safeHTML instead of markdownify

master
Will Faught 6 months ago
parent 9de2388d84
commit 06ce1f7e33

@ -10,7 +10,13 @@
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }} {{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
{{ if eq $credit nil }} {{ if eq $credit nil }}
{{ $credit = `<a class="link-secondary text-decoration-none" href="{{ $theme }}" {{ with $target }} target="{{ . }}" {{ end }}>Paige Theme</a>` | markdownify }} {{ $targetString := "" }}
{{ with $target }}
{{ $targetString = printf ` target="%s"` . }}
{{ end }}
{{ $credit = printf `<a class="link-secondary text-decoration-none" href="%s"%s>Paige Theme</a>` $theme $targetString | safeHTML }}
{{ else }} {{ else }}
{{ $credit = markdownify $credit }} {{ $credit = markdownify $credit }}
{{ end }} {{ end }}

Loading…
Cancel
Save