Add support for extra navigation with next/prev links#553
Add support for extra navigation with next/prev links#553TristanCacqueray wants to merge 1 commit intosrid:masterfrom
Conversation
This change enables setting ema:note:next and ema:note:prev template to insert extra navigation link in the page from the metadata.
|
Hello @srid, with this change I'm trying to setup extra navigation links between notes, for example to suggest the next thing to read. I guess this can be done as part of the note, but I'd like to have a consistent theme similar to the backlinks component so this should be displayed via a template. Also, we might be able to automatically add the prev/next value for chronological notes like for a blog. Does that sounds like a good idea? I wrote this PR quickly to test this feature for my new video feed, which is presently not very usable since you have to go back to the directory to pick the next note. |
|
Do you have to define Generally a good idead to expose 'next' and 'prev' note to templates, yes. |
Oh right you stated this too. Yes, something like that would be ideal. Basically like how |
|
Ok that's good to hear, I'll clean-up this initial change, then I'll look into adding the values automatically. I already tried to implement a |
This change enables setting ema:note:next and ema:note:prev template to insert extra navigation link in the page from the metadata.