Skip to content

Commit

Permalink
fix: use relURL for card link
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing committed Sep 13, 2023
1 parent ec53cef commit 3c71c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<a
class="hextra-card group flex flex-col justify-start overflow-hidden rounded-lg border border-gray-200 text-current no-underline dark:shadow-none hover:shadow-gray-100 dark:hover:shadow-none shadow-gray-100 active:shadow-sm active:shadow-gray-200 transition-all duration-200 {{ $linkClass }}"
href="{{ $link }}"
href="{{ $link | relURL }}"
{{- if $external }}
target="_blank" rel="noreferrer"
{{- end -}}
Expand Down

0 comments on commit 3c71c8e

Please sign in to comment.