mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	I am trying to make various templates and partials act more like self-contained components. This is in preparation for #113.
		
			
				
	
	
		
			23 lines
		
	
	
		
			463 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			463 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ define "main" }}
 | |
|     <h1>
 | |
|         {{ partial "icon.html" "user-circle" }}
 | |
|         {{ .Title | markdownify }}
 | |
|     </h1>
 | |
| 
 | |
|     {{ with .Content }}
 | |
|         {{ . }}
 | |
|     {{ end }}
 | |
| 
 | |
|     <div class="page-list">
 | |
|         {{ with .Paginator.Pages }}
 | |
|             {{ range . }}
 | |
|                 {{ .Render "summary" }}
 | |
|             {{ end }}
 | |
|         {{ else }}
 | |
|             <div>
 | |
|                 {{ i18n "no_posts" }}
 | |
|             </div>
 | |
|         {{ end }}
 | |
|     </div>
 | |
| {{ end }}
 |