hendry
1
maiki
2
Hello. How do you do?
<section>
<div class="bread-container shadow">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "path" .Site.BaseURL }}
<ol class="breadcrumbs">
<li>You are Here: </li>
<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>
</section>
You can do something like this perhaps?
system
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.