Skip to content

feat(blog): implement date-based sorting and minimal post preview (truncated text, date, read more link) (#7890)#7911

Merged
alexander-akait merged 5 commits into
webpack:mainfrom
Katari-8055:feature/Page-Improvement
Mar 5, 2026
Merged

feat(blog): implement date-based sorting and minimal post preview (truncated text, date, read more link) (#7890)#7911
alexander-akait merged 5 commits into
webpack:mainfrom
Katari-8055:feature/Page-Improvement

Conversation

@Katari-8055
Copy link
Copy Markdown
Contributor

@Katari-8055 Katari-8055 commented Mar 4, 2026

🚀 Summary

  • Sorted blog posts by date (latest first)
  • Added minimal post preview (title, date, truncated text, read more link)

Before

Screenshot 2026-03-01 104047

##After
image

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 5, 2026 6:05pm

Request Review

@Katari-8055
Copy link
Copy Markdown
Contributor Author

Hi @eventualbuddha , I’ve closed my previous PR due to some issues. I’ve now opened a new PR that fully addresses the issue and incorporates your suggestions. Please take a look when you get a chance.

@Katari-8055 Katari-8055 changed the title feat(blog): implement date-based sorting and minimal post preview (tr… feat(blog): implement date-based sorting and minimal post preview (truncated text, date, read more link) (#7890) Mar 4, 2026
Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove date from title and make date is more visible in styles and we can merge

@Katari-8055
Copy link
Copy Markdown
Contributor Author

Let's remove date from title and make date is more visible in styles and we can merge

Changes applied as suggested: removed the date from the title and improved the date visibility in styles. Ready for review.

@alexander-akait
Copy link
Copy Markdown
Member

@Katari-8055 Looks good, can you look why Webpack 5.105 post doesn't have date?

? attributes.date.toISOString()
: String(attributes.date);
[attributes.date] = dateStr.split("T");
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid it and use the only one readable format

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks! I’ll avoid the toISOString() conversion and keep a single readable date format (YYYY-MM-DD) for consistency.

@Katari-8055
Copy link
Copy Markdown
Contributor Author

Hi @alexander-akait,
I have applied the changes as per your suggestions. Could you please review them when you get a chance? Thank you!

@alexander-akait alexander-akait merged commit 58430ef into webpack:main Mar 5, 2026
9 checks passed
pranjalisr pushed a commit to pranjalisr/webpack.js.org that referenced this pull request Mar 12, 2026
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.

2 participants