Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Next" and "Previous" buttons #1545

Closed
1 task done
SajjadAlipour2006 opened this issue Feb 16, 2024 · 3 comments
Closed
1 task done

"Next" and "Previous" buttons #1545

SajjadAlipour2006 opened this issue Feb 16, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@SajjadAlipour2006
Copy link

Checklist

Is your feature request related to a problem? Please describe

It is unclear that by what order are the posts meant to be read

Describe the solution you'd like

I would like to have a "Next" and a "Previous" button at the bottom of my posts
Like many of the documentations out there
Some examples:
https://docs.djangoproject.com/
https://docs.pyrogram.org/
https://www.w3schools.com/html/default.asp

Describe alternatives you've considered

The "NEWER" and "OLDER" buttons at the bottom of the posts aren't really helpful sometimes
The date of the posts isn't always the same as the order you should read them by
Besides, "NEWER" doesn't really imply that this is the next post you should read
And users seem to ignore them as they are lower than the "Further Reading" section
The ability to edit them may be a good solution to this

Additional context

Here is my website: https://balethon.ir
As you can see I have countless posts for teaching the library I've created (And there is going to be even more of them)
But as you yourself may have noticed, someone who enters the website will get confused and doesn't know where to start or by which order to read the posts
Somewhat of a Next and a Previous buttons will surely be an elegant solution to this

Also thank you for this flawless theme!

@SajjadAlipour2006 SajjadAlipour2006 added the enhancement New feature or request label Feb 16, 2024
@cotes2020 cotes2020 reopened this Feb 19, 2024
@cotes2020
Copy link
Owner

You can set up _data/locales/{region}.yml under your repository to meet expectations.

@cotes2020 cotes2020 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
@kungfux
Copy link
Collaborator

kungfux commented Mar 11, 2024

Hi @SajjadAlipour2006

Here are couple of suggestions on how you can try to improve user experience for this specific task.

Let's say I write tutorials for Python and DotNet topics where I publish posts for one and another in mixed order.

_posts
├── 2024-01-01-python1.md
├── 2024-01-02-dotnet1.md
├── 2024-01-31-dotnet2.md
├── 2024-02-01-python2.md
├── 2024-02-02-dotnet3.md
└── 2024-03-03-python3.md

Even though they will appear mixed on the Home page based on date and time when they were published, Further Reading works the other way. It takes into account post tags and categories into account that we can utilize. So, make sure to combine them in posts like following:

---
title: Python - 1
date: 2024-01-01 10:48:00 +0400
last_modified_at: 2024-01-01 10:48:00 +0400
categories: [Tutorial, Python]
tags: [Python]
---

This has a few benefits: Further Reading will show posts for Python first. Also, it will be easy to find all posts related to Python tutorials from Categories page.

P.S. You can combine posts under separate folders to make it easier for you to manage them like follows:

_posts
├── python
│   ├── 2024-01-01-python1.md
│   ├── 2024-02-01-python2.md
│   └── 2024-03-03-python3.md
└── dotnet  
    ├── 2024-01-02-dotnet1.md
    ├── 2024-01-31-dotnet2.md
    └── 2024-02-02-dotnet3.md

I understand these suggestions do not solve your query but I hope they will be somewhat useful.

P.S. In order to make Next and Previous buttons, you have to define and manage correct order of the posts manually that sounds as complex to me as to provide links at the of the posts to next tutorial which is another possible workaround.

@SajjadAlipour2006
Copy link
Author

Thank you very much @kungfux and @cotes2020
I just followed the same method as you said and provided the links at the end of the posts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants