Skip to content

Commit ee89de3

Browse files
committed
Fix issue with https domains
1 parent 03d12e8 commit ee89de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/components/button.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ if eq .type "link" }}
2-
<a href="{{ .url | relLangURL }}"{{ if in .url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}
2+
<a href="{{ .url | relLangURL }}"{{ if in .url "https" }} target="_blank" rel="noopener noreferrer"{{ end }}
33
class="inline-block tracking-wide transition focus:outline-none font-semibold antialiased text-sm
44
{{ if eq .style "primary" }}gradient-text hover:opacity-90
55
{{ else }}text-black hover:text-slate-700 dark:text-white dark:hover:text-slate-300
@@ -8,7 +8,7 @@
88
<span aria-hidden="true"></span>
99
</a>
1010
{{ else }}
11-
<a href="{{ .url | relLangURL }}"{{ if in .url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}
11+
<a href="{{ .url | relLangURL }}"{{ 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)