mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 19:08:32 +02:00
Merge pull request #2053 from qdrant/course/multi-vector-search
Course: multi vector search
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<div class="d-flex justify-content-lg-end pb-3 pt-4">
|
||||
{{/* Determine the course section */}}
|
||||
{{ $subject := "" }}
|
||||
{{ if eq .Params.isLesson true }}
|
||||
{{ if .IsSection }}
|
||||
{{/* Current page is a lesson (_index.md), parent is the course section */}}
|
||||
{{ $subject = .Parent }}
|
||||
{{ else }}
|
||||
|
||||
@@ -40,7 +40,19 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq $currentNode.Params.isLesson true) (eq $currentNode.Parent.Params.isLesson true) }}
|
||||
{{ $allLessons := where $subject.Pages ".Params.isLesson" true }}
|
||||
{{ $allLessons := slice }}
|
||||
{{ range $subject.Pages }}
|
||||
{{ if .Params.isLesson }}
|
||||
{{ $allLessons = $allLessons | append . }}
|
||||
{{ end }}
|
||||
{{ if .IsSection }}
|
||||
{{ range .Pages }}
|
||||
{{ if .Params.isLesson }}
|
||||
{{ $allLessons = $allLessons | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $total := len $allLessons }}
|
||||
|
||||
{{ if $total }}
|
||||
|
||||
Reference in New Issue
Block a user