From b5682d216690b5ec3ad284842cb82a7856b4c9d9 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 3 Nov 2020 17:17:20 -0600 Subject: [PATCH] Add weights to the headers --- content/about/_index.md | 1 + content/posts/_index.md | 1 + layouts/generic/list.html | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 layouts/generic/list.html diff --git a/content/about/_index.md b/content/about/_index.md index fac8a59..d7bd609 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -1,5 +1,6 @@ +++ title = "about" +weight = 2 type = "generic" layout = "single" diff --git a/content/posts/_index.md b/content/posts/_index.md index b6e7465..bcc96a4 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -1,5 +1,6 @@ +++ title = "home" +weight = 1 [cascade] type = "posts" diff --git a/layouts/generic/list.html b/layouts/generic/list.html new file mode 100644 index 0000000..5e702c0 --- /dev/null +++ b/layouts/generic/list.html @@ -0,0 +1,18 @@ +{{- define "content" -}} + +{{ .Content }} + + + {{- range .Pages -}} + + + + + {{- end -}} +
+ {{ .Title }} + + {{ partial "rel-date" .Date }} +
+ +{{- end -}}