diff options
| -rw-r--r-- | content/art/index.md | 1 | ||||
| -rw-r--r-- | content/notebook/index.md | 3 | ||||
| -rw-r--r-- | content/projects/index.md | 3 | ||||
| -rw-r--r-- | scripts/metadata_filter.lua | 1 | ||||
| -rw-r--r-- | 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 | |||
| 5 | list_order: date_desc | 5 | list_order: date_desc |
| 6 | list_flatten: true | 6 | list_flatten: true |
| 7 | list_limit: 4 | 7 | list_limit: 4 |
| 8 | list_button: true | ||
| 8 | feed: true | 9 | feed: 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 | --- |
| 2 | title: Notebook | 2 | title: Notebook |
| 3 | position: 4 | 3 | position: 4 |
| 4 | list_limit: 4 | ||
| 5 | list_order: date_desc | 4 | list_order: date_desc |
| 6 | list_flatten: true | 5 | list_flatten: true |
| 6 | list_limit: 4 | ||
| 7 | list_button: true | ||
| 7 | feed: true | 8 | feed: 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 | |||
| 4 | list_layout: grid-2 | 4 | list_layout: grid-2 |
| 5 | list_order: date_desc | 5 | list_order: date_desc |
| 6 | list_flatten: true | 6 | list_flatten: true |
| 7 | list_limit: 6 | 7 | list_limit: 4 |
| 8 | list_button: true | ||
| 8 | feed: true | 9 | feed: 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 | } |
| 233 | end | 234 | end |
| 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$ |
