From b1bb5e7997801d96b0509f1052d6c37ab311ae15 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Fri, 5 Mar 2021 12:28:20 +0100 Subject: [PATCH] fix notes index, enlarge pagination limit --- config.toml | 2 +- content/notes/_index.md | 13 +++++++++++++ layouts/notes/list.html | 25 +++++++++++-------------- 3 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 content/notes/_index.md diff --git a/config.toml b/config.toml index fb380b47..8368cba2 100644 --- a/config.toml +++ b/config.toml @@ -15,7 +15,7 @@ enableGitInfo = true [params] level = 35 favicon = "/img/avatar-icon.png" - pagination = 15 + pagination = 30 # disabled to get rid of cloudflare cookies MathJax = false diff --git a/content/notes/_index.md b/content/notes/_index.md new file mode 100644 index 00000000..28ff7b84 --- /dev/null +++ b/content/notes/_index.md @@ -0,0 +1,13 @@ +--- +title: Half-Baked Ideas +type: archive +icontag: tech +--- + +> A half-baked idea a day keeps the doctor away. Wouter + +These are fleeting, _half-baked_ thoughts, that may or may not get fully baked into fleshed out [blog posts](/post). The notes below are also syndicated to other platforms, such as [Mastodon](https://chat.brainbaking.com/@wouter). Enjoy reading my ramblings! + +Not finding what you're looking for? [Browse the archives](/archives).
+Want to stay up to date? [Subscribe to the Notes Feed](/notes/index.xml).
+Interested more substantial thoughts? [Read the Freshly Baked blog](/post). diff --git a/layouts/notes/list.html b/layouts/notes/list.html index 8162199e..0d62e928 100644 --- a/layouts/notes/list.html +++ b/layouts/notes/list.html @@ -20,26 +20,23 @@ {{ . }} {{ end }} - {{ end }} + {{ end }} +
+ {{ range ($paginator.Pages).GroupByDate "2006" "desc" }} +

{{ .Key }}

- {{ if (not .Params.disableList) }} -
- {{ range ($paginator.Pages).GroupByDate "2006" "desc" }} -

{{ .Key }}

+ {{ range .Pages.GroupByDate "January" }} +

{{ .Key }}

- {{ range .Pages.GroupByDate "January" }} -

{{ .Key }}

+ {{ range .Pages.ByDate.Reverse }} + {{ partial "toot" . }} + {{ end }} - {{ range .Pages.ByDate.Reverse }} - {{ partial "toot" . }} - {{ end }} - - {{ end }} {{ end }} -
- {{ template "_internal/pagination.html" . }} {{ end }} +
+ {{ template "_internal/pagination.html" . }}