Consolidate list templates to _default
Remove the blog list template since it's no different from the default list.
This commit is contained in:
parent
9995c8d10d
commit
4a6dd87603
5 changed files with 44 additions and 30 deletions
|
|
@ -1,13 +1,19 @@
|
|||
<main class="main--list">
|
||||
{{- $page := .page -}}
|
||||
{{- $class := .class | default "" -}}
|
||||
<main class="main--list{{ with $class }} {{ . }}{{ end }}">
|
||||
<header class="page-header">
|
||||
{{ partial "page_header.html" (dict "page" .) }}
|
||||
{{ partial "page_header.html" . }}
|
||||
</header>
|
||||
|
||||
{{- .Content -}}
|
||||
|
||||
{{ range .RegularPages.ByPublishDate -}}
|
||||
{{ if or (not .Draft) hugo.IsDevelopment -}}
|
||||
{{ .Render "page_summary" }}
|
||||
{{ end }}
|
||||
{{ with $page.RegularPages.ByPublishDate -}}
|
||||
<section class="main__posts-by-year">
|
||||
{{ range $page.RegularPages.ByPublishDate -}}
|
||||
{{ if or (not $page.Draft) hugo.IsDevelopment -}}
|
||||
{{ .Render "page_summary" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue