Add weights to the headers

This commit is contained in:
Michael Zhang 2020-11-03 17:17:20 -06:00
parent 7d9a04b8b0
commit b5682d2166
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
3 changed files with 20 additions and 0 deletions

View file

@ -1,5 +1,6 @@
+++
title = "about"
weight = 2
type = "generic"
layout = "single"

View file

@ -1,5 +1,6 @@
+++
title = "home"
weight = 1
[cascade]
type = "posts"

18
layouts/generic/list.html Normal file
View file

@ -0,0 +1,18 @@
{{- define "content" -}}
{{ .Content }}
<table style="width: 100%;">
{{- range .Pages -}}
<tr class="postlisting-row">
<td>
<a href="{{ .Permalink }}" class="brand-colorlink">{{ .Title }}</a>
</td>
<td style="text-align: right;">
{{ partial "rel-date" .Date }}
</td>
</tr>
{{- end -}}
</table>
{{- end -}}