Skip to content

Commit

Permalink
fix(theme): fix feed customElements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 12, 2022
1 parent 11fbed0 commit 0da0568
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/theme/src/node/plugins/feed.ts
Expand Up @@ -24,25 +24,38 @@ export const getFeedPlugin = (
deepAssign(
{
hostname,
author: themeConfig.author,
...(themeConfig.author ? { author: themeConfig.author } : {}),
locales: Object.entries(themeConfig.locales).map(
([localePath, { author, copyright }]) => [
localePath,
{ author, channel: { copyright } },
]
),
},
options || {},
{
customElements: [
"ExternalLinkIcon",
"Badge",
"Bilibili",
"ChartJS",
"CodeDemo",
"CodePen",
"CodeTabs",
"ECharts",
"FlowChart",
"Mermaid",
"PDF",
"Playground",
"Presentation",
"StackBlitz",
"Tabs",
"VideoPlayer",
"VuePlayground",
"YouTube",
...(options?.customElements || []),
],
},
options || {}
}
),
legacy
);
Expand Down

0 comments on commit 0da0568

Please sign in to comment.