{{ define "main" -}}
<h1>{{ .Title }}</h1>
{{ partial "page-toc.html" . }}
{{ partial "header-link.html" .Content }}
{{ if or .Data.Pages }}
<ul class="HowtoList">
{{- range .Data.Pages.GroupBy "Weight" }}
{{- range .ByTitle }}
  {{.Render "li"}}
{{- end }}
{{- end }}
</ul>
{{- end }}
{{- end }}
