Remove breadcrumbs.html
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with .Ancestors }}
|
|
||||||
<nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="mt-3" id="paige-breadcrumbs">
|
|
||||||
<div class="d-flex justify-content-center">
|
|
||||||
<ol class="breadcrumb mb-0">
|
|
||||||
{{ $reverse := .Reverse }}
|
|
||||||
|
|
||||||
{{ $last := sub (len $reverse) 1 }}
|
|
||||||
|
|
||||||
{{ range $i, $ancestor := $reverse }}
|
|
||||||
{{ $title := $ancestor.Title }}
|
|
||||||
|
|
||||||
{{ if and (eq $i $last) (not $title) }}
|
|
||||||
{{ $title = $page.Param "paige.site_title" | default (site.Title) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ $title | markdownify | plainify | htmlUnescape }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
{{ end }}
|
|
@@ -80,7 +80,27 @@
|
|||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "paige/breadcrumbs.html" . }}
|
{{ with .Ancestors }}
|
||||||
|
<nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="mt-3" id="paige-breadcrumbs">
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
<ol class="breadcrumb mb-0">
|
||||||
|
{{ $reverse := .Reverse }}
|
||||||
|
|
||||||
|
{{ $last := sub (len $reverse) 1 }}
|
||||||
|
|
||||||
|
{{ range $i, $ancestor := $reverse }}
|
||||||
|
{{ $title := $ancestor.Title }}
|
||||||
|
|
||||||
|
{{ if and (eq $i $last) (not $title) }}
|
||||||
|
{{ $title = $page.Param "paige.site_title" | default (site.Title) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ $title | markdownify | plainify | htmlUnescape }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if templates.Exists "partials/paige/header-last.html" }}
|
{{ if templates.Exists "partials/paige/header-last.html" }}
|
||||||
{{ partial "paige/header-last.html" $page }}
|
{{ partial "paige/header-last.html" $page }}
|
||||||
|
Reference in New Issue
Block a user