diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 18:05:32 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:17 -0300 |
commit | c3cb6416c3da69937ed600f2a54d9e30d98cb5f1 (patch) | |
tree | f8deb1d278cc217c6846340ceb2d54ab2ed1c71e /src/content/dependencies/generateContributionList.js | |
parent | f5fdcf8c5e47249e2a807203dd58b8b4819f8791 (diff) |
content: chronology labels in contribution lists
Diffstat (limited to 'src/content/dependencies/generateContributionList.js')
-rw-r--r-- | src/content/dependencies/generateContributionList.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/content/dependencies/generateContributionList.js b/src/content/dependencies/generateContributionList.js index f22740b0..8e8c5020 100644 --- a/src/content/dependencies/generateContributionList.js +++ b/src/content/dependencies/generateContributionList.js @@ -8,7 +8,11 @@ export default { .map(contrib => relation('linkContribution', contrib)), }), - generate: (relations, {html}) => + slots: { + chronologyKind: {type: 'string'}, + }, + + generate: (relations, slots, {html}) => html.tag('ul', {[html.onlyIfContent]: true}, @@ -20,5 +24,6 @@ export default { showContribution: true, showChronology: true, preventWrapping: false, + chronologyKind: slots.chronologyKind, })))), }; |