Skip to content

Commit 518cbc0

Browse files
committed
chore: more readable card partial
1 parent 64c9435 commit 518cbc0

File tree

1 file changed

+4
-5
lines changed
  • layouts/_partials/shortcodes/experimental

1 file changed

+4
-5
lines changed

layouts/_partials/shortcodes/experimental/card.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
href="{{ $href }}"
1111
{{ with $external }}target="_blank" rel="noreferrer"{{ end -}}
1212
>
13+
{{- $content -}}
14+
</a>
1315
{{- else -}}
1416
<div class="hextra-card hextra-card-neutral hx:group" >
17+
{{- $content -}}
18+
</div>
1519
{{- end -}}
16-
17-
{{- $content -}}
18-
19-
{{- if $link -}}</a>{{- else -}}</div>{{- end -}}
20-
{{- /* Strip trailing newline. */ -}}

0 commit comments

Comments
 (0)