Skip to content

Commit 45255b7

Browse files
committed
fix: back to the top link when the repo icon is not on the same line as the title
1 parent d1248f1 commit 45255b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/website/expand_templates/linters.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ func getName(lc *types.LinterWrapper) string {
104104
icon = "<FaGitlab size={'0.8rem'} />"
105105
}
106106

107-
name = fmt.Sprintf("%s&nbsp;[%s](%s)", name, spanWithID(listItemPrefix+lc.Name, lc.Name+" repository", icon), lc.OriginalURL)
107+
name = fmt.Sprintf("%s%s&nbsp;[%s](%s)",
108+
spanWithID(listItemPrefix+lc.Name, "", ""),
109+
name,
110+
span(lc.Name+" repository", icon),
111+
lc.OriginalURL,
112+
)
108113
}
109114

110115
if lc.Deprecation == nil {

0 commit comments

Comments
 (0)