Older/newer posts label in blog plugin should be configurable
See original GitHub issueHave you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I’m using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn clear
command. - I have tried
rm -rf node_modules yarn.lock package-lock.json
and re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
Older/newer posts label in blog plugin should be configurable. If you want to use the blog engine to post other content (like release notes), the term ‘post’ becomes irrelevant in this context.
Reproducible demo
No response
Steps to reproduce
Expected behavior
Configuration option (as described in https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog) should be possible.
Actual behavior
Not configurable.
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used:
- Environment name and version (e.g. Chrome 89, Node.js 16.4):
- Operating system and version (e.g. Ubuntu 20.04.2 LTS):
Self-service
- I’d be willing to fix this bug myself.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
How to properly use labels as categories on Blogger - XOmisse
Beginners guide to blogging on Blogger - How to properly use labels as categories or post topics to organise content.
Read more >News Manager (updated) - GetSimple CMS
Not my design. This plugin was created by roog, I'm just trying to update and maintain it. ... In the next News Manager...
Read more >Showing all posts with a given label - Blogger Community
Hey, been fighting with this for some time with no solution. On my site (webnesia.com), I have labels that I attach to each...
Read more >WP Blog Post Layouts – WordPress plugin
Versatile plugin specially designed to create beautiful posts layouts. Fully compatible with Gutenberg and Elementor. Comes with advanced features suc …
Read more >How to Create a Separate Page for Blog Posts in WordPress
You can create a separate page for blog posts using WordPress alone, without needing a plugin. However, this method takes a little more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can try this conditional logic after swizzling the component:
useRouteContext
is experimental/undocumented for now but we’ll likely keep this feature even if it’s refactored.You can also use
useLocation().pathname.startsWith("/release-notes/")
or whatever else makes sense for your use-caseThank you for the hints! Probably at the moment the most sensible and safe solution will be to translate it permanently to something more general like Next/Previous.