mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 10:03:30 -05:00 
			
		
		
		
	Move taxonomy related list page to a different file
This commit is contained in:
		
							
								
								
									
										41
									
								
								layouts/taxonomy/list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								layouts/taxonomy/list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| {{ define "main" }} | ||||
|  | ||||
| <h1> | ||||
|     {{ partial "icon.html" "filter" }} | ||||
|     {{ i18n "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> | ||||
|  | ||||
| {{ 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> | ||||
|     {{ i18n "no_posts" }} | ||||
| </div> | ||||
| {{ end }} | ||||
|  | ||||
| {{ if gt .Paginator.TotalPages 1 }} | ||||
| <div class="pagination"> | ||||
|     {{ template "_internal/pagination.html" . }} | ||||
| </div> | ||||
| {{ end }} | ||||
|  | ||||
| {{ end }} | ||||
|  | ||||
| {{ end }} | ||||
		Reference in New Issue
	
	Block a user