Skip to content

Commit

Permalink
[i18nIgnore] really fix rss feed #2099 (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor authored May 1, 2024
1 parent c36dfa5 commit bad87d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/feed.xml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This RSS includes all pages in root locale, excluding releases
// This RSS includes all pages in root locale, excluding releases and references
import config from 'virtual:starlight/user-config';
import { getNewestCommitDate } from 'node_modules/@astrojs/starlight/utils/git';
import { getCollection } from 'astro:content';
Expand Down
4 changes: 2 additions & 2 deletions src/pages/pages.xml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This RSS includes only docs pages in root locale
// This RSS includes only docs pages in root locale, excluding releases, blog and references
import config from 'virtual:starlight/user-config';
import { getNewestCommitDate } from 'node_modules/@astrojs/starlight/utils/git';
import { getCollection } from 'astro:content';
Expand All @@ -8,7 +8,7 @@ import rss from '@astrojs/rss';

// Ternary is just so typescript won't complain
const exclude = config.isMultilingual
? Object.keys(config.locales).concat('blog', 'references', 'rss')
? Object.keys(config.locales).concat('blog', 'references', 'rss', 'releases')
: [];

// https://docs.astro.build/en/reference/api-reference/#endpoint-context
Expand Down

0 comments on commit bad87d1

Please sign in to comment.