mirror of
				https://github.com/Brandon-Rozek/website-theme.git
				synced 2025-10-31 01:41:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ define "main"}}
 | |
|   <h1 class='title'>{{ .Title }}</h1>
 | |
|   {{ partial "header.html" . }}
 | |
|   {{ if not .Date.IsZero }}
 | |
|   <!-- date -->
 | |
|   {{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
 | |
|   <p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
 | |
|   {{ end }}
 | |
|   <!-- tags -->
 | |
|   <div id="tags">
 | |
|     <ul>
 | |
|       {{ range .Param "tags" }}
 | |
|         {{ $name := . }}
 | |
|         {{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
 | |
|           <li><a href="{{ .Permalink }}">{{ $name }}</a></li>
 | |
|         {{ end }}
 | |
|       {{ end }}
 | |
|     </ul>
 | |
|   </div>
 | |
|   <!-- content -->
 | |
|   <div id="contentBody">
 | |
|     {{ .Content }}
 | |
|   </div>
 | |
|   {{ partial "footer.html" . }}
 | |
| {{ end }}
 |