chore(partials): refactor partials
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
{{- $options := dict "href" .Destination "title" .Title "content" .Text -}}
|
||||
{{- partial "plugin/link.html" $options -}}
|
||||
|
||||
Reference in New Issue
Block a user