feat(article): add render-link hook

This commit is contained in:
Jimmy Cai
2020-08-24 12:07:58 +02:00
parent a4d388c0f0
commit a1250ee75f
2 changed files with 4 additions and 2 deletions
@@ -0,0 +1,3 @@
<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"
{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"
{{ end }}>{{ .Text | safeHTML }}</a>