2017-03-03 15:30:15 +01:00
|
|
|
<div class="sidebar-offcanvas" id="sidebar" role="navigation" style="margin-top: 100px;">
|
|
|
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
|
|
|
{{ $.Scratch.Add "path" .Site.BaseURL }}
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="/">home</a></li>
|
|
|
|
{{ range $index, $element := split $url "/" }}
|
|
|
|
{{ $.Scratch.Add "path" $element }}
|
|
|
|
{{ if ne $element "" }}
|
|
|
|
<li><a href='{{ $.Scratch.Get "path" }}'>{{ . }}</a></li>
|
|
|
|
{{ $.Scratch.Add "path" "/" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</div>
|