mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-25 15:33:28 -05:00 
			
		
		
		
	See https://gohugo.io/templates/new-templatesystem-overview/ Under layouts/ - mv _default/* . - mv partials _partials - mv shortcodes _shortcodes - mv taxonomy/list.html taxonomy.html - mv taxonomy/term.html term.html
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ define "main" }}
 | |
|     <div class="page-title">
 | |
|         <h1>
 | |
|             {{ if eq .Data.Singular "tag" }}
 | |
|                 {{ partial "icon.html" "tag" }}
 | |
|             {{ else if eq .Data.Singular "category" }}
 | |
|                 {{ partial "icon.html" "folder" }}
 | |
|             {{ else }}
 | |
|                 {{ partial "icon.html" "filter" }}
 | |
|             {{ end }}
 | |
| 
 | |
|             {{ .Title | markdownify }}
 | |
|         </h1>
 | |
|     </div>
 | |
| 
 | |
|     {{ with .Content }}
 | |
|         {{ . }}
 | |
|     {{ end }}
 | |
| 
 | |
|     <div class="taxonomy-list">
 | |
|         {{ with .Data.Terms.Alphabetical }}
 | |
|             {{ range . }}
 | |
|                 {{ with .Page }}
 | |
|                     <article class="taxonomy-term">
 | |
|                         <div class="taxonomy-list-left">
 | |
|                             <a href="{{ .Permalink }}">
 | |
|                                 <p>{{ .Title | markdownify }}</p>
 | |
|                             </a>
 | |
|                             {{ partial "page-metadata/taxonomy.html" . }}
 | |
|                         </div>
 | |
|                         {{ partial "description-or-summary.html" . }}
 | |
|                     </article>
 | |
|                 {{ end }}
 | |
|             {{ end }}
 | |
|         {{ else }}
 | |
|             <div>
 | |
|                 {{ i18n "no_posts" }}
 | |
|             </div>
 | |
|         {{ end }}
 | |
|     </div>
 | |
| {{ end }}
 |