summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/art/index.md1
-rw-r--r--content/notebook/index.md3
-rw-r--r--content/projects/index.md3
-rw-r--r--scripts/metadata_filter.lua1
-rw-r--r--templates/layouts/categorized_list.html6
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
5list_order: date_desc 5list_order: date_desc
6list_flatten: true 6list_flatten: true
7list_limit: 4 7list_limit: 4
8list_button: true
8feed: true 9feed: true
9--- 10---
10 11
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 @@
1--- 1---
2title: Notebook 2title: Notebook
3position: 4 3position: 4
4list_limit: 4
5list_order: date_desc 4list_order: date_desc
6list_flatten: true 5list_flatten: true
6list_limit: 4
7list_button: true
7feed: true 8feed: true
8--- 9---
9 10
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
4list_layout: grid-2 4list_layout: grid-2
5list_order: date_desc 5list_order: date_desc
6list_flatten: true 6list_flatten: true
7list_limit: 6 7list_limit: 4
8list_button: true
8feed: true 9feed: true
9--- 10---
10 11
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)
229 items = items, 229 items = items,
230 total = tostring(#allItems), 230 total = tostring(#allItems),
231 omitted = omitted ~= 0 and tostring(omitted), 231 omitted = omitted ~= 0 and tostring(omitted),
232 button = cat.list_button,
232 } 233 }
233end 234end
234 235
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$
48 $it.omitted$ more items <span class="u-ml-10">→</span> 48 $it.omitted$ more items <span class="u-ml-10">→</span>
49 </a> 49 </a>
50 </footer> 50 </footer>
51 $elseif(it.button)$
52 <footer class="l-card-list__footer">
53 <a class="l-media__block o-badge o-badge--200" href="$it.url.rel$">
54 View section <span class="u-ml-10">→</span>
55 </a>
56 </footer>
51 $endif$ 57 $endif$
52 </section> 58 </section>
53 $endfor$ 59 $endfor$