Skip to content

Commit 4e16a7e

Browse files
authored
dev: skip empty originalURL (#6042)
1 parent 3efb39f commit 4e16a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/layouts/_shortcodes/golangci/items/settings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
}}
7373
{{ end }}
7474
{{ end }}
75+
{{- if .originalURL -}}
7576
<a href="{{ .originalURL }}" title="Repository" target="_blank">
7677
{{ partial "shortcodes/badge" (dict
7778
"border" true
@@ -82,6 +83,7 @@
8283
)
8384
}}
8485
</a>
86+
{{- end -}}
8587
</p>
8688

8789
{{/* Settings */}}

0 commit comments

Comments
 (0)