Create a previous page button

I want to provide the readers of one of my blog posts with an easy possibility to navigate back to the blog page they started from. Of course they can use the previous button of the browser, but I want to create some kind of previous button (preferably only code that I can connect to an svg) at the bottom of the blog post. I’m not a developer and don’t know how to write code myself. Can anyone help me?

Thanks, Pouwel

From what i understand- it is not possible (yet)

I wanted three buttons

  • Previous
  • Return Home
  • Next

You can easily create a button and link it back to your main blog page.

If you want a button (or SVG) that takes them back to any previous page they were on, you can add this as a Plain Text link javascript:history.back(). Like this:

Hope that helps.

Yes, that works. Thanks. Linking back to the main blog page is what I did already. But that’s not satisfying for a reader who is for example on blog page 5. But the javascript trick solved my problem.

You can also define (prev / next) in the Markdown frontmatter if you want — and then simply place the appropriate syntax in the blog.

3 Likes

Oh, that’s a pretty nifty idea if you have specific articles you want to suggest to readers, I like it :smiling_face_with_three_hearts: