mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 22:48:30 +02:00
* use relative links instead of absolute * add trailing slashes to avoid 301 redirect * add trailing slashes to avoid 301 redirect * make link checker unhappy with local redirects * test if ci fails (should fail) * rollback: test if ci fails (should fail)
16 lines
576 B
HTML
16 lines
576 B
HTML
<ul class="breadcrumbs">
|
|
<li class="breadcrumbs__crumb"><a href="/">Home</a></li>
|
|
{{ $rellink := "" }}
|
|
{{ $paths := (split .RelPermalink "/") }}
|
|
{{ $len := sub (len $paths) 2 }}
|
|
{{ range first $len $paths }}
|
|
{{ if gt (len . ) 0 }}
|
|
{{ $rellink = printf "%s/%s/" $rellink . }}
|
|
<li class="breadcrumbs__crumb">/</li>
|
|
<li class="breadcrumbs__crumb"><a href="{{$rellink}}">{{ humanize . }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
<li class="breadcrumbs__crumb">/</li>
|
|
<li class="breadcrumbs__crumb">{{ .Params.title | safeHTML }}</li>
|
|
</ul>
|