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

✨ feat: add previous/next article navigation #246

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

welpo
Copy link
Owner

@welpo welpo commented Jan 4, 2024

Summary

Adds the feature "Previous and Next Article Links" to display navigation links at the bottom of posts for moving to the previous or next article. This setting follows the settings hierarchy, meaning it can be set in the post, section or entire config.toml level.

Related issue

Resolves #244.

Accessibility

Uses semantic HTML and the contrast is the same as the rest of tabi.

Screenshots

show_previous_next_article_links_light

Type of change

  • Bug fix (fixes an issue without altering functionality)
  • New feature (adds non-breaking functionality)
  • Breaking change (alters existing functionality)
  • UI/UX improvement (enhances user interface without altering functionality)
  • Refactor (improves code quality without altering functionality)
  • Documentation update
  • Other (please describe below)

Checklist

  • I have verified the accessibility of my changes
  • I have tested all possible scenarios for this change
  • I have updated theme.toml with a sane default for the feature
  • I have made corresponding changes to the documentation:
    • Updated config.toml comments
    • Updated theme.toml comments
    • Updated "Mastering tabi" post in English
    • (Optional) Updated "Mastering tabi" post in Spanish
    • (Optional) Updated "Mastering tabi" post in Catalan

Acknowledgements

The logic for this feature was inspired by the Abridge theme.

@welpo welpo force-pushed the feat/show-previous-next-article-links branch from 6619af3 to ef138d1 Compare January 4, 2024 18:04
@welpo welpo merged commit dac6bfc into main Jan 4, 2024
1 check passed
@welpo welpo deleted the feat/show-previous-next-article-links branch January 4, 2024 18:05
Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

previos and next link in page
1 participant