feat: allow inverting previous/next article links (#261)

- Adds next/previous labels for clarity
- Truncated long titles get "…" appended

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
ZzMzaw
2024-01-29 00:00:30 +01:00
committed by GitHub
parent c9d6b62907
commit b011f58da6
9 changed files with 66 additions and 8 deletions

View File

@@ -477,9 +477,13 @@ Displays links to the previous and next articles at the bottom of posts. It look
To activate this feature, set `show_previous_next_article_links = true`.
By default, this navigation section will have the full width of the site (same as the navigation bar at the top). To make it narrower, matching the article width, set `previous_next_article_links_full_width = false`.
By default, next articles will be on the left side of the page and previous articles will be on the right side.
To reverse the order (next articles on the right and previous articles on the left), set `invert_previous_next_article_links = true`.
This setting also follows the hierarchy.
By default, this navigation section will have the full width of the site (same as the navigation bar at the top).
To make it narrower, matching the article width, set `previous_next_article_links_full_width = false`.
All of these settings follow the hierarchy.
### Footnote Backlinks