diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-08-14 10:42:19 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:25:43 -0300 |
commit | 4ee17a3fc87de8fee776b32854ae5e9cf6b5ef1c (patch) | |
tree | 04c34bc82c019b6be5850d3a60c37647ccecbd44 /src/content/dependencies/generateNextLink.js | |
parent | 3a7e5ebf3adf0232768c667f868dfea615fa161c (diff) |
content: generate{Previous,Next,PreviousNext}Link
Diffstat (limited to 'src/content/dependencies/generateNextLink.js')
-rw-r--r-- | src/content/dependencies/generateNextLink.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/dependencies/generateNextLink.js b/src/content/dependencies/generateNextLink.js new file mode 100644 index 00000000..2e48cd2b --- /dev/null +++ b/src/content/dependencies/generateNextLink.js @@ -0,0 +1,13 @@ +export default { + contentDependencies: ['generatePreviousNextLink'], + + relations: (relation) => ({ + link: + relation('generatePreviousNextLink'), + }), + + generate: (relations) => + relations.link.slots({ + direction: 'next', + }), +}; |