mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-27 02:35:12 +00:00
10 lines
461 B
HTML
10 lines
461 B
HTML
{{- $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>
|