mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
adding .Site.Params.disableBreadcrumb
NB: Still shows heading of page. Otherwise looks a bit ugly
This commit is contained in:
parent
59c4cbf186
commit
2fd986166e
1 changed files with 8 additions and 4 deletions
|
@ -62,11 +62,15 @@
|
||||||
<i class="fa fa-bars"></i>
|
<i class="fa fa-bars"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{ if $toc }}
|
{{ if $toc }}
|
||||||
<span id="toc-menu"><i class="fa fa-list-alt"></i></span>
|
<span id="toc-menu"><i class="fa fa-list-alt"></i></span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="links">
|
<span class="links">
|
||||||
|
{{if ne .Site.Params.disableBreadcrumb true}}
|
||||||
{{ template "breadcrumb" dict "page" . "value" .Title }}
|
{{ template "breadcrumb" dict "page" . "value" .Title }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Title }}
|
||||||
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{ if $toc }}
|
{{ if $toc }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue