68 lines
2.0 KiB
HTML
68 lines
2.0 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 class="site-menu">
|
|
{{ block "site-menu" . -}}
|
|
{{ partial "site-menu.html" . }}
|
|
{{- end }}
|
|
</nav>
|
|
</header>
|
|
<main {{ if eq .Kind "page" }}class="h-entry"{{ else if in (slice "section" "taxonomy" "taxonomyTerm" ) .Kind }}class="h-feed"{{ end }}>
|
|
<div class="content-box">
|
|
<header>
|
|
{{- block "content-header" . -}}
|
|
{{- end -}}
|
|
</header>
|
|
<section>
|
|
{{- block "content" . -}}
|
|
<!-- The part of the page that begins to differ between templates -->
|
|
{{ end }}
|
|
</section>
|
|
<footer>
|
|
{{- block "content-footer" . -}}
|
|
{{- end -}}
|
|
</footer>
|
|
</div>
|
|
<div class="asides-box">
|
|
<aside>
|
|
{{ block "author-card" . }}
|
|
{{ partial "author-card.html" . }}
|
|
{{ end }}
|
|
</aside>
|
|
<nav>
|
|
{{- block "content-menu" . -}}
|
|
{{- end -}}
|
|
</nav>
|
|
</div>
|
|
</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> |