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

12 lines
415 B
HTML
Raw Normal View History

2019-10-26 00:15:49 +02:00
<!-- {{/*
Usage: {{< linkBlank "URL" "TITLE" >}}
*/}}-->
{{ $linkTitle := .Get 1 }}
{{ $linkUrl := .Get 0 }}
{{ if $linkTitle }}
<a target="_blank" rel="nofollow" href="{{ $linkUrl | absLangURL }}">{{ $linkTitle | markdownify }} <i class="fa fa-external-link"></i></a>
{{ else }}
<a target="_blank" rel="nofollow" href="{{ $linkUrl | absLangURL }}">{{ $linkUrl }} <i class="fa fa-external-link"></i></a>
{{ end }}