diff --git a/layouts/partials/shortcodes/link.html b/layouts/partials/shortcodes/link.html
index 7eed69e42a..9ebd3a2ab2 100644
--- a/layouts/partials/shortcodes/link.html
+++ b/layouts/partials/shortcodes/link.html
@@ -79,5 +79,4 @@
{{- if $v }}
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
{{- end }}
- {{- end -}}
- >{{ $content | safeHTML }}
\ No newline at end of file
+ {{- end }}>{{ $content | safeHTML }}
\ No newline at end of file