change to hugo-blog-awesome theme
This commit is contained in:
parent
113e3650f1
commit
15b6142a8e
131 changed files with 5895 additions and 124 deletions
23
themes/hugo-blog-awesome/layouts/_default/list.html
Normal file
23
themes/hugo-blog-awesome/layouts/_default/list.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{- define "main" -}}
|
||||
<div class="wrapper list-page">
|
||||
<header class="header">
|
||||
<h1 class="header-title center">{{ .Title }}</h1>
|
||||
</header>
|
||||
<main class="page-content" aria-label="Content">
|
||||
{{ range .Pages.GroupByDate "2006" }}
|
||||
{{ $year := .Key }}
|
||||
<h2 class="post-year">{{ $year }}</h2>
|
||||
|
||||
{{/* create a list of posts for each month, with month as heading */}}
|
||||
|
||||
{{ range .Pages }}
|
||||
|
||||
{{ partial "postCard" . }}
|
||||
|
||||
{{ end }} {{/* end range .Pages */}}
|
||||
|
||||
{{ end }} {{/* end range .Pages.GroupByDate "2006" */}}
|
||||
|
||||
</main>
|
||||
</div>
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue