Skip to content

Commit 3770b26

Browse files
committed
Fix issue with contribute button being relative
1 parent ee89de3 commit 3770b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/components/button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span aria-hidden="true"></span>
99
</a>
1010
{{ else }}
11-
<a href="{{ .url | relLangURL }}"{{ if in .url "https" }} target="_blank" rel="noopener noreferrer"{{ end }}
11+
<a href="{{ if in .url "http" }}{{ .url }}{{ else }}{{ .url | relLangURL }}{{ end }}"{{ if in .url "https" }} target="_blank" rel="noopener noreferrer"{{ end }}
1212
class="inline-block tracking-wide transition rounded-md focus:outline-none font-semibold antialiased
1313
{{ if eq .size "small" }}px-4 py-1.5 text-sm{{ else if eq .size "large" }}px-8 py-3 md:px-12 text-lg sm:text-xl{{ else }}px-6 py-2{{ end }}
1414
{{ if eq .style "primary" }}text-white border border-sky-500 bg-sky-500 hover:bg-sky-600 hover:border-sky-600

0 commit comments

Comments
 (0)