Remove breadcrumb navigation and fix #17

This commit is contained in:
BBaoVanC 2021-10-06 17:00:34 -05:00
parent 9af039619e
commit 19f0eb8357
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 4 additions and 38 deletions

View File

@ -24,6 +24,10 @@
padding-left: 10px;
}
.tag {
white-space: nowrap;
}
.rss-link {
padding-left: 5px;
}
@ -114,27 +118,6 @@ hr {
/* Breadcrumb navigation */
ul.breadcrumb {
padding 10px 16px;
list-style: none;
}
ul.breadcrumb li {
display: inline;
}
ul.breadcrumb li+li:before {
padding: 8px;
content: "/\00a0";
}
ul.breadcrumb li.active a {
color: inherit;
}
/* Pagination */
.pagination {
list-style: none;

View File

@ -17,10 +17,6 @@
</nav>
</div>
{{ if .Site.Params.breadcrumbnav }}
{{ partial "breadcrumb.html" . }}
{{ end }}
<div class="content">
{{- block "main" . }}
{{ .Content }}

View File

@ -1,13 +0,0 @@
<ul class="breadcrumb">
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ul>
{{ define "breadcrumbnav" }}
{{ if .p1.Parent }}
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
<li{{ if eq .p1 .p2 }} class="active"{{ end }}>
<a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a>
</li>
{{ end }}