From 29ad7ab0cf1fc5d87d5ee3912356e6f330d43467 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 6 May 2018 01:43:53 +0900 Subject: [PATCH] Provide prev and next note link --- src/server/web/views/note.pug | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/web/views/note.pug b/src/server/web/views/note.pug index faf0e5d73..8cb1d954d 100644 --- a/src/server/web/views/note.pug +++ b/src/server/web/views/note.pug @@ -19,3 +19,8 @@ block meta meta(property='og:description' content= summary) meta(property='og:url' content= url) meta(property='og:image' content= img) + + if note.prev + link(rel='prev' href=`${config.url}/notes/${note.prev.id}`) + if note.next + link(rel='next' href=`${config.url}/notes/${note.next.id}`)