mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
615 B
HTML
16 lines
615 B
HTML
<ul class="docs-breadcrumbs">
|
|
{{ $rellink := "" }}
|
|
{{ $paths := (split .RelPermalink "/") }}
|
|
{{ $len := sub (len $paths) 2 }}
|
|
{{ range first $len $paths }}
|
|
{{ if gt (len . ) 0 }}
|
|
{{ $rellink = printf "%s/%s" $rellink . }}
|
|
{{ $section := $.Site.GetPage $rellink }}
|
|
{{ $label := cond (ne $section nil) $section.Title (humanize .) }}
|
|
<li class="docs-breadcrumbs__crumb"><a href="{{ $rellink }}/">{{ $label }}</a></li>
|
|
<li class="docs-breadcrumbs__crumb-separator"></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
<li class="docs-breadcrumbs__crumb">{{ .Params.title | safeHTML }}</li>
|
|
</ul>
|