init
This commit is contained in:
commit
e3c43e06ff
120 changed files with 16894 additions and 0 deletions
28
themes/hugoplate/layouts/partials/components/breadcrumb.html
Normal file
28
themes/hugoplate/layouts/partials/components/breadcrumb.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{{ $context := .Context }}
|
||||
{{ $class := .Class }}
|
||||
{{ $base := site.Home.Permalink }}
|
||||
|
||||
|
||||
<ul class="{{ $class }} inline-flex space-x-1 capitalize">
|
||||
<li>
|
||||
<a class="text-primary " href="{{ $base }}">
|
||||
{{ i18n "home" | default "Home" }}
|
||||
</a>
|
||||
<span class="inlin-block mr-1">/</span>
|
||||
</li>
|
||||
{{ range $i, $e:= $context.Ancestors.Reverse }}
|
||||
{{ if and (not .IsHome) (ne .Title "Pages") }}
|
||||
<li>
|
||||
<a class="text-primary " href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
<span class="inlin-block mr-1">/</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li>
|
||||
<span class="text-primary ">
|
||||
{{ $context.Title }}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue