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

Fix feed, fix feed item sorting #1769

Closed
wants to merge 1 commit into from
Closed

Conversation

Kissaki
Copy link
Contributor

@Kissaki Kissaki commented Feb 1, 2025

66c8888 (#1765) added old blog posts but with a current author and commit date.

Blog items should be dated to their creation and publication rather than when this git source move took place.

Because the feed plugin used git dates, only the 30 oldest items ended up in the feed.

Falling back to front-matter date should resolve the issue.

Blog posts showing up correctly dated on /blog/ indicates that the page date is set correctly from the file name, even without explicit front matter within the post source file.

Untested; please verify.

Hopefully resolves #1767

An alternative approach would be committing the post files individually with git commits dated back to their publication dates. But the whole git integration seems error-prone to me, so this commit seems like a better solution with less effort.

66c8888 (nushell#1765) added old blog posts but with a current author and commit date.

Blog items should be dated to their creation and publication rather than when this git source move took place.

Because the feed plugin used git dates, only the 30 oldest items ended up in the feed.

Falling back to front-matter date should resolve the issue.

Blog posts showing up correctly dated on `/blog/` indicates that the page date is set correctly from the file name, even without explicit front matter within the post source file.

Untested; please verify.

Hopefully resolves nushell#1767

An alternative approach would be committing the post files individually with git commits dated back to their publication dates. But the whole git integration seems error-prone to me, so this commit seems like a better solution with less effort.
@NotTheDr01ds
Copy link
Contributor

Thanks! Unfortunately doesn't seem to work. There's no frontmatter date for most (if not all) of the content.

I think I'm going to need to either add YALM frontmatter to the older content at least. Or possible change the sorter to get the date from the filename.

Note for testing: In the feedPlugin settings, set devServer: true, to enable the feed in the devserver.

@Kissaki Kissaki closed this Feb 3, 2025
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.

Blog feed (RSS and Atom) only lists earliest posts with wrong date
2 participants