feat(partial): add hook and image partial

This commit is contained in:
Dillon
2020-02-03 11:46:30 +08:00
parent b91ca3d61a
commit 8aba226290
12 changed files with 52 additions and 92 deletions

View File

@@ -1,10 +1,3 @@
<a href="{{ .Destination | safeURL }}"
{{ with .Title -}}
title="{{ . }}"
{{ end -}}
{{ if strings.HasPrefix .Destination "http" -}}
target="_blank"
{{ end -}}
>
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>
{{- .Text | safeHTML -}}
</a>