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

Blog entries with duplicate title doesn't get published on the blog index page #6059

Closed
5 of 7 tasks
stnor opened this issue Dec 7, 2021 · 1 comment · Fixed by #6061
Closed
5 of 7 tasks

Blog entries with duplicate title doesn't get published on the blog index page #6059

stnor opened this issue Dec 7, 2021 · 1 comment · Fixed by #6061
Assignees
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@stnor
Copy link
Contributor

stnor commented Dec 7, 2021

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn 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

When creating a new blog post with the same title as an old post, it picks the old post for the the blog index.html

Steps to reproduce

  1. npx create-docusaurus@latest website classic
  2. cd website/blog
  3. cp 2019-05-28-first-blog-post.md 2021-12-07-first-blog-post.md
  4. Change contents of new file to "This is the new blog post. Does it show on the index page?"
  5. yarn start
  6. Go to the blog index page. It will show the post from 2019-05-28 and not the new post.

Expected behavior

The new post should be on the blog index page, not the old. The rss.xml is correct and shows the new post first.

Actual behavior

Screenshot 2021-12-07 at 10 52 23

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):

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.
@stnor stnor added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Dec 7, 2021
@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Dec 7, 2021
@Josh-Cena
Copy link
Collaborator

Bug located. On it soon 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants