Skip to content

Commit 9691763

Browse files
authored
dev: open starcharts in a new tab (#6010)
1 parent f003980 commit 9691763

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/layouts/_shortcodes/starcharts.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
{{- /*
2+
Displays a starchart for a GitHub repository.
3+
Supports both light and dark mode.
4+
5+
@param {string} repo The name of the GitHub repository.
6+
7+
@example {{< starcharts repo="golangci/golangci-lint" >}}
8+
9+
*/ -}}
110
{{- $repo := .Get "repo" -}}
211

3-
<a href="https://starchart.cc/{{ $repo }}">
12+
<a href="https://starchart.cc/{{ $repo }}" target="_blank">
413
<img
514
alt="Stargazers over time"
615
src="https://starchart.cc/{{ $repo }}.svg"

0 commit comments

Comments
 (0)