Skip to content

Fix pubDate not being added to RSS entries#2206

Merged
fdncred merged 1 commit into
nushell:mainfrom
ninjack-dev:fix-feed-pubdate
Jul 17, 2026
Merged

Fix pubDate not being added to RSS entries#2206
fdncred merged 1 commit into
nushell:mainfrom
ninjack-dev:fix-feed-pubdate

Conversation

@ninjack-dev

Copy link
Copy Markdown
Contributor

Resolves #2103. I went for the simplest possible fix which just uses the parsed date from the file name; since this lacks an actual time, the RSS feed shows new entries as being published at midnight. A more granular fix would be somewhat hacky (e.g. parsing the Git commit metadata on a per-file basis, or requiring that article writers specify date in the frontmatter), so I'd just leave it as-is for now.

Confirmed with:

def getTitlePubDate [] {
  $in | get content.content.0
      | where tag == "item"
      | each {|it|
          {
            title: ($it.content | where tag == "title" | first 1 | get content.0.content.0)
            pubDate: ($it.content | where tag == "pubDate" | first 1 | get content.0.content.0)
          }
        } | first 3 | to md 
}

Running open .vuepress/dist/rss.xml | getTitlePubDate:

title pubDate
Nushell 0.114.1 Sat, 11 Jul 2026 00:00:00 GMT
Nushell 0.114.0 Sat, 04 Jul 2026 00:00:00 GMT
This week in Nushell #356 Fri, 19 Jun 2026 00:00:00 GMT

@ninjack-dev ninjack-dev changed the title Fix publishDate not being added to RSS entries Fix pubDate not being added to RSS entries Jul 16, 2026
@fdncred
fdncred merged commit 6320609 into nushell:main Jul 17, 2026
2 checks passed
@fdncred

fdncred commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Thanks

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.

Feed repeatedly lists old items as new

2 participants