From 4033108d3dd65d77626cf05e7116d7fe3e81bcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Mon, 23 Jan 2023 21:18:15 +0100 Subject: [PATCH] Add: Microposts, layout and config --- src/config.yml | 9 +++++-- src/themes/oscar/layouts/microposts/list.html | 24 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/themes/oscar/layouts/microposts/list.html diff --git a/src/config.yml b/src/config.yml index 98ff84f..f46e95e 100644 --- a/src/config.yml +++ b/src/config.yml @@ -33,13 +33,18 @@ menu: title: "Posts" url: "/posts/" weight: 10 + - identifier: "microposts" + name: "Social" + title: "Social" + url: "/microposts/" + weight: 20 - identifier: "archive" name: "Archive" title: "Archive" url: "/archive/" - weight: 20 + weight: 30 - identifier: "about" name: "About" title: "About" url: "/about/" - weight: 30 + weight: 40 diff --git a/src/themes/oscar/layouts/microposts/list.html b/src/themes/oscar/layouts/microposts/list.html new file mode 100644 index 0000000..f4588cb --- /dev/null +++ b/src/themes/oscar/layouts/microposts/list.html @@ -0,0 +1,24 @@ +{{ define "main" }} + +
+

Microposts

+ {{ .Content }} +
+
+ {{ range (.Paginate (where .Pages "Type" "microposts")).Pages }} +
+
+ +
+ {{ .Content }} +
+
+ {{ end }} +
+ +
+ +{{ end }} +