mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 08:46:35 -04:00
feat: improve Cards link behaviour (#153)
* clickable feature-card when a link is provided * unclickable card when no link is provided --------- Co-authored-by: Xin <xin@imfing.com>
This commit is contained in:
@@ -49,9 +49,8 @@
|
||||
|
||||
<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="{{ $href }}"
|
||||
{{- if $external }}
|
||||
target="_blank" rel="noreferrer"
|
||||
{{- if $link -}}
|
||||
href="{{ $href }}" {{ with $external }}target="_blank" rel="noreferrer"{{ end -}}
|
||||
{{- end -}}
|
||||
>
|
||||
{{- with $image -}}
|
||||
|
Reference in New Issue
Block a user