Welcome to mirror list, hosted at ThFree Co, Russian Federation.

render-link.html « _markup « _default « layouts - github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 312379bc70dc0e4563b9d842bd6ccd9f2e183201 (plain)
1
2
3
4
5
{{- $url := .Destination | safeURL -}}
{{- $text := .Text | safeHTML -}}
<a href="{{- $url -}}" 
{{- with .Title -}}title="{{- . -}}"{{- end -}} 
{{- if strings.HasPrefix $url "http" -}}target="_blank"{{- end -}}>{{- $text -}}</a>