mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 18:08:30 +02:00
moved pricing pages files
# Conflicts: # qdrant-landing/themes/qdrant-2024/layouts/partials/testimonial-light.html
This commit is contained in:
@@ -4,15 +4,16 @@
|
||||
<div class="d-flex flex-column flex-xl-row">
|
||||
{{ partial "course/sidebar-menu.html" (dict "context" .) }}
|
||||
|
||||
|
||||
<div class="documentation__content">
|
||||
<div class="documentation__content-wrapper">
|
||||
<div class="documentation__article-wrapper">
|
||||
|
||||
{{ if not (eq .RelPermalink "/course/") }}
|
||||
{{ partial "documentation/breadcrumbs" . }}
|
||||
{{ end }}
|
||||
|
||||
<article class="documentation-article">
|
||||
|
||||
<article class="documentation-article">
|
||||
{{ partial "article-content.html" . }}
|
||||
|
||||
{{ $parent := .Parent }}
|
||||
@@ -71,12 +72,11 @@
|
||||
{{ $currentWeight = int $currentPage.Params.weight }}
|
||||
{{ end }}
|
||||
|
||||
<a
|
||||
href="{{ $next.RelPermalink }}"
|
||||
class="button button_contained button_sm"
|
||||
>
|
||||
|
||||
<a href="{{ $next.RelPermalink }}" class="button button_contained button_sm">
|
||||
{{ if eq $currentWeight $maxWeight }}
|
||||
{{ $subject.Params.content.nextDay }} {{ .Parent.Title }}
|
||||
{{ $subject.Params.content.nextDay }}
|
||||
{{ .Parent.Title }}
|
||||
{{ else }}
|
||||
{{ $subject.Params.content.nextButton }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
{{ $currentNode := .context }}
|
||||
|
||||
|
||||
<div class="docs-menu">
|
||||
<div id="sidebar" class="docs-menu__content">
|
||||
<nav>
|
||||
<div class="docs-menu__links-group">
|
||||
|
||||
|
||||
<!--
|
||||
If page is top-level, like /course we want to show sidebar with sub-pages of /course
|
||||
If page is not top-level, like /course/essentials we want to show sidebar with sub-pages of /course/essentials
|
||||
@@ -18,29 +17,32 @@
|
||||
{{ $subject := $currentNode }}
|
||||
|
||||
{{ if eq $numLevels 1 }}
|
||||
{{ $subject = $currentNode }} <!-- top-level, `/course` -->
|
||||
{{ $subject = $currentNode }}
|
||||
<!-- top-level, `/course` -->
|
||||
{{ else if eq $numLevels 2 }}
|
||||
{{ $subject = $currentNode }} <!-- not top-level, `/course/essentials` -->
|
||||
{{ $subject = $currentNode }}
|
||||
<!-- not top-level, `/course/essentials` -->
|
||||
{{ else if eq $numLevels 3 }}
|
||||
{{ $subject = $currentNode.Parent }} <!-- not top-level, `/course/essentials/day-0` -->
|
||||
{{ $subject = $currentNode.Parent }}
|
||||
<!-- not top-level, `/course/essentials/day-0` -->
|
||||
{{ else if eq $numLevels 4 }}
|
||||
{{ $subject = $currentNode.Parent.Parent }} <!-- not top-level, `/course/essentials/day-0/introduction` -->
|
||||
{{ $subject = $currentNode.Parent.Parent }}
|
||||
<!-- not top-level, `/course/essentials/day-0/introduction` -->
|
||||
{{ else }}
|
||||
{{ $subject = $currentNode.Parent.Parent.Parent }} <!-- not top-level, `/course/essentials/day-0/introduction/overview` -->
|
||||
{{ $subject = $currentNode.Parent.Parent.Parent }}
|
||||
<!-- not top-level, `/course/essentials/day-0/introduction/overview` -->
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
{{ if and $subject $subject.Params $subject.Params.content $subject.Params.content.sidebarTitle }}
|
||||
<p class="docs-menu__links-title">
|
||||
{{ $subject.Params.content.sidebarTitle }}
|
||||
</p>
|
||||
<p class="docs-menu__links-title">
|
||||
{{ $subject.Params.content.sidebarTitle }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq $currentNode.Params.isLesson true) (eq $currentNode.Parent.Params.isLesson true) }}
|
||||
{{ $allLessons := where $subject.Pages ".Params.isLesson" true }}
|
||||
{{ $total := len $allLessons }}
|
||||
|
||||
|
||||
{{ if $total }}
|
||||
{{ $currentIndex := 0 }}
|
||||
{{ range $i, $p := $allLessons }}
|
||||
@@ -58,6 +60,7 @@
|
||||
{{ $percent := mul (div (float $currentIndex) (float $total)) 100 }}
|
||||
{{ $percentStr := printf "%.0f" $percent }}
|
||||
|
||||
|
||||
<div class="docs-menu__progress">
|
||||
<div class="docs-menu__progress-container">
|
||||
<div class="docs-menu__progress-bar" style="width: {{ $percentStr }}%;"></div>
|
||||
@@ -72,7 +75,9 @@
|
||||
class="
|
||||
mt-3
|
||||
docs-menu__articles-link
|
||||
docs-menu__links-group-heading{{ if eq $currentNode.RelPermalink $subject.Params.content.menuTitle.url }} active{{ end }}
|
||||
docs-menu__links-group-heading{{ if eq $currentNode.RelPermalink $subject.Params.content.menuTitle.url }}
|
||||
active
|
||||
{{ end }}
|
||||
"
|
||||
>
|
||||
<a href="{{ $subject.Params.content.menuTitle.url }}">
|
||||
@@ -94,7 +99,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if $fileExistsAndMatchUniqueID }}
|
||||
{{ $isActive = true }}
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ $sectionLink := .Permalink }}
|
||||
@@ -103,6 +108,7 @@
|
||||
{{ $sectionLink = (index (.RegularPages) 0).Permalink }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<details
|
||||
class="docs-menu__links-group link-group {{ if $fileExistsAndMatchUniqueID }}active{{ end }}"
|
||||
{{ if $isActive }}open{{ end }}
|
||||
@@ -114,9 +120,7 @@
|
||||
<ul class="docs-menu__links-submenu">
|
||||
{{ range .Pages }}
|
||||
{{ $fileExistsAndMatchUniqueIDSub := and .File $currentNode.File (eq .File.UniqueID $currentNode.File.UniqueID) }}
|
||||
<div
|
||||
class="docs-menu__links-group {{ if $fileExistsAndMatchUniqueIDSub }}active{{ end }}"
|
||||
>
|
||||
<div class="docs-menu__links-group {{ if $fileExistsAndMatchUniqueIDSub }}active{{ end }}">
|
||||
<div class="docs-menu__links-group-heading">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</div>
|
||||
@@ -127,9 +131,7 @@
|
||||
</details>
|
||||
{{ else }}
|
||||
{{ $fileExistsAndMatchUniqueID := and .File $currentNode.File (eq .File.UniqueID $currentNode.File.UniqueID) }}
|
||||
<div
|
||||
class="docs-menu__links-group {{ if $fileExistsAndMatchUniqueID }}active{{ end }}"
|
||||
>
|
||||
<div class="docs-menu__links-group {{ if $fileExistsAndMatchUniqueID }}active{{ end }}">
|
||||
<div class="docs-menu__links-group-heading">
|
||||
<a href="{{ .Params.url }}">{{ .Title }}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user