Skip to content

Commit ffc870f

Browse files
committed
Document default meta on KeywordTags
1 parent b19a851 commit ffc870f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/head/KeywordsMeta.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,22 @@ const DEFAULT_TAGS = [
1010
"New Git Client"
1111
] as const;
1212

13+
/**
14+
* Creates a meta tag for the keywords
15+
*
16+
* By default it adds:
17+
* - Git
18+
* - Commit Rocket
19+
* - Git Client
20+
* - Git Gui
21+
* - New Git Client
22+
* @param props KeywordTagsProps
23+
*/
1324
const KeywordsMeta = ({ tags = [] }: KeywordTagsProps) => (
1425
<meta
1526
key="meta:keywords"
1627
name="keywords"
17-
content={[...DEFAULT_TAGS, ...tags].map((tag) => tag.replace(",", "")).join(", ")}
28+
content={Array.from(new Set([...DEFAULT_TAGS, ...tags])).map((tag) => tag.replace(",", "")).join(", ")}
1829
/>
1930
);
2031

0 commit comments

Comments
 (0)