feat: Remove blank parameter it's a bad practice, why it's here ?

This commit is contained in:
Simon 2021-10-22 17:04:26 +02:00
parent 0a9d9cabfc
commit cda43d557f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
{{- if $isWebLink -}}
{{ $hasSlash := in .Destination "/" }}
{{ $link := cond (and $isWebLink (and (not $hasSlash) (not $isExternalLink))) (path.Join "/" .Page.File.Dir .Destination) .Destination }}
<a href="{{ $link | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if $isExternalLink }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
<a href="{{ $link | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if $isExternalLink }} rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
{{- else if $isMailtoLink -}}
{{ partial "contact/mail" .Destination }}
{{- else if $isTelLink -}}