From d035d72901c8bc6a43bf6d99f99dfeaf8e0bcf34 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 15 Jun 2022 10:47:43 +0200 Subject: Update --- content/art/index.md | 1 + content/notebook/index.md | 3 ++- content/projects/index.md | 3 ++- scripts/metadata_filter.lua | 1 + templates/layouts/categorized_list.html | 6 ++++++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/content/art/index.md b/content/art/index.md index 3280f79..91cdecf 100644 --- a/content/art/index.md +++ b/content/art/index.md @@ -5,6 +5,7 @@ list_layout: gallery-2 list_order: date_desc list_flatten: true list_limit: 4 +list_button: true feed: true --- diff --git a/content/notebook/index.md b/content/notebook/index.md index 2cebe5c..a16d522 100644 --- a/content/notebook/index.md +++ b/content/notebook/index.md @@ -1,9 +1,10 @@ --- title: Notebook position: 4 -list_limit: 4 list_order: date_desc list_flatten: true +list_limit: 4 +list_button: true feed: true --- diff --git a/content/projects/index.md b/content/projects/index.md index 73ad070..9f0b40f 100644 --- a/content/projects/index.md +++ b/content/projects/index.md @@ -4,7 +4,8 @@ position: 3 list_layout: grid-2 list_order: date_desc list_flatten: true -list_limit: 6 +list_limit: 4 +list_button: true feed: true --- diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 07f060c..03c4a68 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -229,6 +229,7 @@ function cat_to_list_cat(cat, allItems) items = items, total = tostring(#allItems), omitted = omitted ~= 0 and tostring(omitted), + button = cat.list_button, } end diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 19425a0..dc18407 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -48,6 +48,12 @@ $body$ $it.omitted$ more items + $elseif(it.button)$ + $endif$ $endfor$ -- cgit v1.2.3-54-g00ecf