From 4ee17a3fc87de8fee776b32854ae5e9cf6b5ef1c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 14 Aug 2024 10:42:19 -0300 Subject: content: generate{Previous,Next,PreviousNext}Link --- src/content/dependencies/generateNextLink.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/content/dependencies/generateNextLink.js (limited to 'src/content/dependencies/generateNextLink.js') 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', + }), +}; -- cgit 1.3.0-6-gf8a5