2022-10-10 13:02:23 -07:00
|
|
|
{{ define "header" }}
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<header class="page">
|
2022-10-14 14:28:03 -07:00
|
|
|
<h1>{{ .Title }}</h1>
|
2022-10-10 13:02:23 -07:00
|
|
|
</header>
|
|
|
|
|
2023-04-23 22:02:11 +09:00
|
|
|
{{ partial "table_of_contents.html" . }}
|
2023-05-08 20:12:11 -07:00
|
|
|
{{ partial "ruby_controls.html" . }}
|
2023-04-23 22:02:11 +09:00
|
|
|
|
2023-02-12 10:33:25 -08:00
|
|
|
{{- $hasContent := false -}}
|
|
|
|
{{ with .Content }}
|
|
|
|
{{- $hasContent = true -}}
|
|
|
|
{{ . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-04-23 22:07:27 +09:00
|
|
|
{{ if .Params.posts | default true }}
|
|
|
|
{{ if and $hasContent }}
|
|
|
|
<h2>Posts</h2>
|
|
|
|
{{ end }}
|
2023-02-12 10:33:25 -08:00
|
|
|
|
2023-04-23 22:07:27 +09:00
|
|
|
<ul>
|
|
|
|
{{- range .Pages -}}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
2022-10-10 13:02:23 -07:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "footer" }}
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|