mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 14:38:30 +02:00
Use section _index.md titles in docs breadcrumbs instead of humanized URL slugs (#2290)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
7bbc520de9
commit
b93c8379e2
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Home
|
||||
title: Documentation
|
||||
weight: 2
|
||||
hideTOC: true
|
||||
breadcrumb: false
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
{{ range first $len $paths }}
|
||||
{{ if gt (len . ) 0 }}
|
||||
{{ $rellink = printf "%s/%s" $rellink . }}
|
||||
<li class="docs-breadcrumbs__crumb"><a href="{{ $rellink }}/">{{ humanize . }}</a></li>
|
||||
{{ $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 }}
|
||||
|
||||
Reference in New Issue
Block a user