Add weights to the headers
This commit is contained in:
parent
7d9a04b8b0
commit
b5682d2166
3 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
title = "about"
|
title = "about"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
type = "generic"
|
type = "generic"
|
||||||
layout = "single"
|
layout = "single"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
title = "home"
|
title = "home"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
[cascade]
|
[cascade]
|
||||||
type = "posts"
|
type = "posts"
|
||||||
|
|
18
layouts/generic/list.html
Normal file
18
layouts/generic/list.html
Normal 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 -}}
|
Loading…
Reference in a new issue