diff options
Diffstat (limited to 'src/content/dependencies/generatePreviousLink.js')
-rw-r--r-- | src/content/dependencies/generatePreviousLink.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/dependencies/generatePreviousLink.js b/src/content/dependencies/generatePreviousLink.js new file mode 100644 index 00000000..775367f9 --- /dev/null +++ b/src/content/dependencies/generatePreviousLink.js @@ -0,0 +1,13 @@ +export default { + contentDependencies: ['generatePreviousNextLink'], + + relations: (relation) => ({ + link: + relation('generatePreviousNextLink'), + }), + + generate: (relations) => + relations.link.slots({ + direction: 'previous', + }), +}; |