Redo the blog list layout to make it work a little better on narrow screens
This commit is contained in:
parent
8b4273fcae
commit
e7b2cb493a
5 changed files with 70 additions and 64 deletions
|
@ -3,18 +3,16 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<section id="by-date">
|
||||
{{- range .Pages.ByDate.GroupByDate "2006" -}}
|
||||
<h6>{{ .Key | title }}</h6>
|
||||
<ul class="post-list">
|
||||
{{- range .Pages -}}
|
||||
{{- if or (not .Draft) (not hugo.IsProduction) -}}
|
||||
{{- .Render "li_grid_with_date" -}}
|
||||
{{- end -}}
|
||||
{{- range .Pages.ByDate.GroupByDate "2006" -}}
|
||||
<h5>{{ .Key | title }}</h5>
|
||||
<ul>
|
||||
{{- range .Pages -}}
|
||||
{{- if or (not .Draft) (not hugo.IsProduction) -}}
|
||||
{{- .Render "li_grid_with_date" -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
</section>
|
||||
</ul>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue