hugo-theme-tiles/layouts/shortcodes/linkBlank.html

12 lines
491 B
HTML

<!-- {{/*
Usage: {{< linkBlank "URL" "TITLE" >}}
*/}}-->
{{ $linkTitle := .Get 1 }}
{{ $linkUrl := .Get 0 }}
{{ if $linkTitle }}
<a target="_blank" rel="noreferrer" href="{{ $linkUrl | absLangURL }}" aria-label="{{ $linkTitle | markdownify }}">{{ $linkTitle | markdownify }} <i class="fa fa-external-link"></i></a>
{{ else }}
<a target="_blank" rel="noreferrer" href="{{ $linkUrl | absLangURL }}" aria-label="{{ $linkUrl }}">{{ $linkUrl }} <i class="fa fa-external-link"></i></a>
{{ end }}