hugo-theme-cybercards/layouts/_default/_markup/render-link.html
2022-04-02 11:59:05 +02:00

5 lines
180 B
HTML

{{- if hasPrefix .Destination "https://" -}}
<a href="{{ .Destination }}" target="_blank">{{ .Text }}</a>
{{- else -}}
<a href="{{ .Destination }}">{{ .Text }}</a>
{{- end -}}