mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-03 18:27:55 -06:00 
			
		
		
		
	Remove breadcrumb navigation and fix #17
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -17,10 +17,6 @@
 | 
			
		||||
            </nav>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {{ if .Site.Params.breadcrumbnav }}
 | 
			
		||||
        {{ partial "breadcrumb.html" . }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
        <div class="content">
 | 
			
		||||
        {{- block "main" . }}
 | 
			
		||||
        {{ .Content }}
 | 
			
		||||
 
 | 
			
		||||
@@ -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 }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user