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 posts should be truncated in list view by default #9691

Open
2 tasks done
slorber opened this issue Jan 3, 2024 · 0 comments
Open
2 tasks done

Blog posts should be truncated in list view by default #9691

slorber opened this issue Jan 3, 2024 · 0 comments
Labels
proposal This issue is a proposal, usually non-trivial change
Milestone

Comments

@slorber
Copy link
Collaborator

slorber commented Jan 3, 2024

Have you read the Contributing Guidelines on issues?

Motivation

To prevent SEO / duplicate content issues, blog posts should be truncated in list view (paginated lists) by default.

Currently we only truncate posts having the truncate marker <!-- truncate --> or {/* truncate */}, but many users don't add or know that marker exist, leading to possible SEO problems.

In Docusaurus v4, let's do a breaking change and make sure we always truncate posts by default, with an option to opt-out to the old v3 behavior (having the ability to not truncate).

We could use the blog post description/excerp as the default truncated version (unless user provides an explicit truncate marker).

Related to #9657 (comment), cc @johnnyreilly

Self-service

  • I'd be willing to do some initial work on this proposal myself.
@slorber slorber added the proposal This issue is a proposal, usually non-trivial change label Jan 3, 2024
@slorber slorber added this to the 4.0 milestone Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This issue is a proposal, usually non-trivial change
Projects
None yet
Development

No branches or pull requests

2 participants
@slorber and others