Files
landing_page/qdrant-landing/themes/qdrant-2024/layouts/shortcodes/card.html
T
trean 35d0b0f0db Couple of shortcodes (#1485)
* card shortcode

* shortcodes

* updateing readme and hugo version

* readme upd
2025-03-06 19:35:25 +01:00

21 lines
883 B
HTML

{{ $col := .Get "col" }}
{{ $tagColor := .Get "tagColor" }}
{{ $type := default "Document" (.Get "type") }}
{{ $icon := default "/icons/outline/documentation-blue.svg" (.Get "icon") }}
{{ $image := .Get "image" }}
<div class="col-{{ if $col }}{{ $col }}{{ else }}12{{ end }} mb-4">
<a class="docs-card" href="{{ .Get "link" }}">
{{ if $image }}
<img class="docs-card__image" src="{{ $image }}" alt="{{ .Get "title" }}" />
{{ else }}
<div class="docs-card__tag{{ if $tagColor }}docs-card__tag_{{- $tagColor -}}{{ end }}">
<img class="docs-card__icon" src="{{ $icon }}" alt="icon" />
<span>{{ $type }}</span>
</div>
{{ end }}
<h3 class="docs-card__title">{{ .Get "title" }}</h3>
<p class="docs-card__description">{{ .Inner | .Page.RenderString }}</p>
<span class="docs-card__link link link_sm">Read More</span>
</a>
</div>