64 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			HTML
		
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| 
 | |
| <head>
 | |
|     <meta charset="utf-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     {{- partial "identity.html" . }}
 | |
|     <title>{{- block "title" . -}}
 | |
|         {{ .Site.Title }}
 | |
|         {{- end -}}</title>
 | |
|     {{ block "styles" . }}
 | |
|     <link rel="stylesheet" href={{ "css/layout.css" | absURL }} />
 | |
|     <link rel="stylesheet" href={{ "css/style.css" | absURL }} />
 | |
|     {{ end }}
 | |
|     {{ block "icons" . }}
 | |
|     {{ partial "icons.html" . }}
 | |
|     {{ end }}
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
|     <header>
 | |
|         {{- block "site-header" . -}}
 | |
|         <!-- Code that all your templates share, like a header -->
 | |
|         {{ partial "header.html" . }}
 | |
|         {{- end }}
 | |
|         <nav>
 | |
|             {{ block "site-menu" . -}}
 | |
|             {{ partial "site-menu.html" . }}
 | |
|             {{- end }}
 | |
|         </nav>
 | |
|     </header>
 | |
|     <main {{ if eq .Kind "page" }}class="h-entry"{{ else if eq .Kind "section" }}class="h-feed"{{ end }}>
 | |
|         <header>
 | |
|             {{- block "content-header" . -}}
 | |
|             {{- end -}}
 | |
|             <nav>
 | |
|                 {{- block "content-menu" . -}}
 | |
|                 {{- end -}}
 | |
|             </nav>
 | |
|         </header>
 | |
|         <section>
 | |
|             {{- block "content" . -}}
 | |
|             <!-- The part of the page that begins to differ between templates -->
 | |
|             {{ end }}
 | |
|         </section>
 | |
|         <footer>
 | |
|             {{- block "content-footer" . -}}
 | |
|             {{- end -}}
 | |
|         </footer>
 | |
|         <aside>
 | |
|             {{ block "author-card" . }}
 | |
|             {{ partial "author-card.html" . }}
 | |
|             {{ end }}
 | |
|         </aside>
 | |
|     </main>
 | |
|     <footer>
 | |
|         {{- block "footer" . -}}
 | |
|         <!-- More shared code, perhaps a footer but that can be overridden if need be in  -->
 | |
|         {{- partial "footer.html" . -}}
 | |
|         {{- end -}}
 | |
|     </footer>
 | |
| </body>
 | |
| 
 | |
| </html> |