Files
landing_page/qdrant-landing/themes/qdrant-2024/layouts/partials/qdrant-post.html
T
nastyapash 2f38a71bde Updated Blog-Post page (#1260)
* Updated Blog-Post page

* Second version of the progress bar

* Updated Progress bar for Safari and Firefox

* Returned the scroll bar in the first version
2024-11-05 13:28:46 +01:00

61 lines
2.4 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>&middot;</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" }}
<div class="qdrant-post__nav">
{{ with (.context.Site.GetPage "/headless/share-buttons") }}
<h6 class="qdrant-post__nav-title">{{ .Params.navTitle }}</h6>
{{ end }}
{{ .context.TableOfContents }}
<div class="qdrant-post__nav-links">
{{ $link := urlquery .context.Permalink }}
{{ $title := .context.Title }}
{{ with (.context.Site.GetPage "/headless/share-buttons") }}
{{ range .Params.buttons }}
{{ $url := .url | replaceRE "\\{\\{\\s*\\$link\\s*\\}\\}" $link | replaceRE "\\{\\{\\s*\\$title\\s*\\}\\}" $title }}
<a href="{{ $url }}" target="_blank" rel="noopener noreferrer" title="{{ .title }}">
{{ .icon | safeHTML }}
{{ .subtitle }}
</a>
{{ end }}
{{ end }}
</div>
</div>
{{ 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>