diff options
Diffstat (limited to 'themes/LoveIt/layouts/partials/plugin/a.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/plugin/a.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/plugin/a.html b/themes/LoveIt/layouts/partials/plugin/a.html new file mode 100644 index 0000000..8dccaa7 --- /dev/null +++ b/themes/LoveIt/layouts/partials/plugin/a.html @@ -0,0 +1,9 @@ +{{- $rel := "" -}} +<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .Destination).Host | or .Newtab }}{{ $rel = "noopener noreffer " }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .Rel }}{{ . }}{{ end }}"{{ with .Class }} class="{{ . }}"{{ end }}> + {{- with .Icon -}} + {{- partial "plugin/icon.html" . -}} + {{- end -}} + {{- with .Content -}} + {{- . | safeHTML -}} + {{- end -}} +</a>
\ No newline at end of file |