mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 00:18:32 +02:00
50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
<section
|
|
class="qdrant-post {{ if eq .variant "centered" }}
|
|
qdrant-post_centered
|
|
{{ else if eq .variant "blog-post" }}
|
|
qdrant-blog-post
|
|
{{ end }}"
|
|
>
|
|
<article id="article" class="container">
|
|
<div class="qdrant-post__header">
|
|
<h1 class="qdrant-post__title">{{ .context.Params.title }}</h1>
|
|
<div class="qdrant-post__about">
|
|
<p>{{ .context.Params.author }}</p>
|
|
<span>·</span>
|
|
<p>{{ time.Format "January 02, 2006" .context.Date }}</p>
|
|
</div>
|
|
{{ if .context.Params.preview_dir }}
|
|
<picture class="qdrant-post__preview">
|
|
<source srcset="{{ .context.Params.preview_dir }}/title.webp" type="image/webp" />
|
|
<img alt="{{ .context.Title }}" src="{{ .context.Params.preview_dir }}/title.jpg" />
|
|
</picture>
|
|
{{ else }}
|
|
<picture class="qdrant-post__preview">
|
|
{{ partial "preview-image" (dict "context" .context "default_file_name" "title.jpg" "preview_file" .context.Params.title_preview_image) }}
|
|
</picture>
|
|
{{ end }}
|
|
</div>
|
|
<div class="row qdrant-post__breadcrumbs">
|
|
<div class="col-12">
|
|
{{ partial "breadcrumbs" .context }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="qdrant-post__body">
|
|
{{ if eq .variant "blog-post" }}
|
|
{{ partial "table-of-contents" .context }}
|
|
{{ end }}
|
|
|
|
|
|
<div class="qdrant-post__content">
|
|
{{ partial "article-content" .context }}
|
|
</div>
|
|
|
|
{{ if eq .variant "centered" }}
|
|
{{ .context.Scratch.Set "variant" "horizontal" }}
|
|
{{ partial "share-buttons" .context }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
</section>
|