mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			50 lines
		
	
	
		
			996 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			996 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ define "main" }}
 | |
| {{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
 | |
| <h1>
 | |
|     {{ partial "icon.html" "filter" }}
 | |
|     Filtering for "{{ .Title }}"
 | |
|     {{ if eq .Kind "term" }}
 | |
|     <span class="rss-link">
 | |
|         {{ with .OutputFormats.Get "rss" }}
 | |
|         <a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
 | |
|         {{ end }}
 | |
|     </span>
 | |
|     {{ end }}
 | |
| </h1>
 | |
| {{ else }}
 | |
| <h1>
 | |
|     {{ .Title | markdownify }}
 | |
|     <span class="rss-link">
 | |
|         {{ with .OutputFormats.Get "rss" }}
 | |
|         <a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
 | |
|         {{ end }}
 | |
|     </span>
 | |
| </h1>
 | |
| {{ end }}
 | |
| 
 | |
| {{ if eq .Kind "taxonomy" }}
 | |
| <ul>
 | |
|     {{ range .Pages }}
 | |
|     <li>
 | |
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
 | |
|     </li>
 | |
|     {{ end }}
 | |
| </ul>
 | |
| 
 | |
| {{ else }}
 | |
| {{ range .Paginator.Pages }}
 | |
|     {{ .Render "summary" }}
 | |
| {{ else }}
 | |
| <div>
 | |
|     No posts here!
 | |
| </div>
 | |
| {{ end }}
 | |
| 
 | |
| <div class="pagination">
 | |
|     {{ template "_internal/pagination.html" . }}
 | |
| </div>
 | |
| 
 | |
| {{ end }}
 | |
| 
 | |
| {{ end }}
 |