feat: Remove blank parameter it's a bad practice, why it's here ?
This commit is contained in:
parent
0a9d9cabfc
commit
cda43d557f
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue