mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-25 14:08:30 +02:00
102 lines
4.3 KiB
HTML
102 lines
4.3 KiB
HTML
<!--documentation content layout, aka middle part of the documentation page where the actual content is displayed-->
|
|
<section class="docs documentation">
|
|
<div class="documentation__container">
|
|
<div class="d-flex flex-column flex-xl-row">
|
|
{{ $partition := partial "get-partition.html" (dict "page" .) }}
|
|
|
|
{{ partial "documentation/sidebar-menu" (dict "context" . "partition" $partition) }}
|
|
|
|
|
|
<div class="documentation__content">
|
|
<!-- todo: update this and styles to support both types of content on the same page-->
|
|
<div class="documentation__content-wrapper">
|
|
{{ if eq .Section "articles" }}
|
|
{{ if .Params.isMainPage }}
|
|
{{ partial "documentation/articles/hub" . }}
|
|
{{ else if .Params.isCategoryPage }}
|
|
{{ partial "documentation/articles/category" . }}
|
|
{{ else }}
|
|
<div class="documentation__article-wrapper">
|
|
{{ partial "documentation/breadcrumbs" . }}
|
|
|
|
|
|
<article class="documentation-article">
|
|
<div class="documentation-article__header">
|
|
{{ $back := site.GetPage "/articles" }}
|
|
{{ with site.GetPage (printf "/articles/%s/" .Params.category) }}{{ $back = . }}{{ end }}
|
|
|
|
<a href="{{ $back.RelPermalink }}" class="documentation-article__header-link">
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path
|
|
d="M14.6668 8.00004H1.3335M1.3335 8.00004L6.00016 12.6667M1.3335 8.00004L6.00016 3.33337"
|
|
stroke="#8F98B3"
|
|
stroke-width="1.33333"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
/>
|
|
</svg>
|
|
Back to
|
|
{{ $back.Title }}
|
|
</a>
|
|
<h1 class="documentation-article__header-title">{{ .Params.title }}</h1>
|
|
<div class="documentation-article__header-about">
|
|
<p>{{ .Params.author }}</p>
|
|
<span>·</span>
|
|
<p>{{ time.Format "January 02, 2006" .Date }}</p>
|
|
</div>
|
|
{{ if .Params.preview_dir }}
|
|
<picture class="documentation-article__header-preview">
|
|
<source srcset="{{ .Params.preview_dir }}/title.webp" type="image/webp" />
|
|
<img alt="{{ .Title }}" src="{{ .Params.preview_dir }}/title.jpg" />
|
|
</picture>
|
|
{{ else }}
|
|
<picture class="documentation-article__preview">
|
|
{{ partial "preview-image" (dict "context" . "default_file_name" "title.jpg" "preview_file" .Params.title_preview_image) }}
|
|
</picture>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ partial "article-content.html" . }}
|
|
</article>
|
|
{{ partial "documentation/feedback.html" . }}
|
|
</div>
|
|
{{ partial "table-of-contents" . }}
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ if .Params.content }}
|
|
<div class="documentation__article-wrapper">
|
|
<div class="docs-core documentation-article">
|
|
{{ partial "documentation/custom-content.html" . }}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
|
|
<div class="documentation__article-wrapper">
|
|
{{ if not (eq .Params.breadcrumb false) }}
|
|
{{ partial "documentation/breadcrumbs" . }}
|
|
{{ end }}
|
|
|
|
|
|
<article class="documentation-article">
|
|
{{ partial "article-content.html" . }}
|
|
{{ partial "documentation/guides/series-navigation" . }}
|
|
</article>
|
|
|
|
{{ if not (eq .Params.feedback false) }}
|
|
{{ partial "documentation/feedback.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ partial "table-of-contents" . }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ partial "documentation/footer.html" . }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|