Files
landing_page/qdrant-landing/themes/qdrant/layouts/partials/breadcrumbs.html
T
trean e2950d7b47 New blog section (#477)
* new blog layout WIP

* contact form - compact variant, some hero section styles

* pagination style

* post fetching WIP

* two cols form

* blog post

* blog post related posts styles

* some refactoring

* forms fixes

* hero section

* breadcrumbs

* fix

* fixes for featured section

* fixes

* blog single page

* single page related posts - mobile view

* single page

* html, share links hover

* input focus styles

* some hovers

* added page-serch

* fixes

* fix compact view of card

* form ids

* related posts, mobile list, css fixes

* blog post archetype

* posts

* turned off cards img animation

* netlify cms update

* removed excessive padding

* readme

* font 500 for news letter form
2023-12-19 19:58:30 +01:00

16 lines
575 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>