Remove the main intermediate container. It wasn't acutally serving a purpose. Remove some of the BEM-style classes that also weren't really doing anything.
17 lines
414 B
HTML
17 lines
414 B
HTML
{{ define "main" }}
|
|
<main class="main--list">
|
|
<header class="page-header">
|
|
{{ partial "page_header.html" (dict "page" .) }}
|
|
</header>
|
|
|
|
{{- with .Content }}
|
|
<div class="main__content">{{ . }}</div>
|
|
{{ end -}}
|
|
|
|
{{ range .Pages.ByDate.Reverse -}}
|
|
{{ if or (not .Draft) hugo.IsDevelopment }}
|
|
{{ .Render "page_summary" }}
|
|
{{ end }}
|
|
{{- end }}
|
|
</main>
|
|
{{ end }}
|