Suppression des espaces additionnels
This commit is contained in:
@@ -28,11 +28,11 @@
|
|||||||
{{- $param := $aff.param -}}
|
{{- $param := $aff.param -}}
|
||||||
{{- $value := $aff.value -}}
|
{{- $value := $aff.value -}}
|
||||||
{{- $isAffiliated = true -}}
|
{{- $isAffiliated = true -}}
|
||||||
{{- if $query }}
|
{{- if $query -}}
|
||||||
{{- $newURL = printf "%s://%s%s?%s&%s=%s" $parsed.Scheme $host $path $query $param $value -}}
|
{{- $newURL = printf "%s://%s%s?%s&%s=%s" $parsed.Scheme $host $path $query $param $value -}}
|
||||||
{{- else }}
|
{{- else -}}
|
||||||
{{- $newURL = printf "%s://%s%s?%s=%s" $parsed.Scheme $host $path $param $value -}}
|
{{- $newURL = printf "%s://%s%s?%s=%s" $parsed.Scheme $host $path $param $value -}}
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $titlePrefix := "" -}}
|
{{- $titlePrefix := "" -}}
|
||||||
{{- if $isAffiliated -}}
|
{{- if $isAffiliated -}}
|
||||||
@@ -52,6 +52,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
<a href="{{ $newURL }}" title="{{ $titlePrefix }}{{ .Title }}"
|
<a href="{{ $newURL }}" title="{{ $titlePrefix }}{{ .Title }}"
|
||||||
{{- if $isExternal -}} rel="noreferrer"{{- end -}}
|
{{- if $isExternal -}} rel="noreferrer"{{- end -}}
|
||||||
{{- if gt (len $classes) 0 -}} class="{{ delimit $classes " " }}"{{- end -}}>
|
{{- if gt (len $classes) 0 -}} class="{{ delimit $classes ` ` }}"{{- end -}}>
|
||||||
{{- .Text | safeHTML -}}
|
{{- .Text | safeHTML -}}
|
||||||
</a>
|
</a>
|
||||||
|
{{- /* */ -}}
|
||||||
Reference in New Issue
Block a user