Skip to content

Commit d0f0417

Browse files
Update src/starlight-overrides/Head.astro
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5d15840 commit d0f0417

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/starlight-overrides/Head.astro

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,27 @@ const frontmatter = entry.data;
2525

2626
{/* Add meta tags for the new fields */}
2727
{frontmatter.audience && (
28-
<meta name="audience" content={Array.isArray(frontmatter.audience) ? frontmatter.audience.join(', ') : frontmatter.audience} />
28+
<meta
29+
name="audience"
30+
content={
31+
Array.isArray(frontmatter.audience)
32+
? frontmatter.audience.join(', ')
33+
: frontmatter.audience
34+
}
35+
/>
2936
)}
3037
{frontmatter.complexity && (
3138
<meta name="complexity" content={frontmatter.complexity} />
3239
)}
3340
{frontmatter.keywords && (
34-
<meta name="keywords" content={frontmatter.keywords.join(', ')} />
41+
<meta
42+
name="keywords"
43+
content={
44+
Array.isArray(frontmatter.keywords)
45+
? frontmatter.keywords.join(', ')
46+
: ''
47+
}
48+
/>
3549
)}
3650
{frontmatter.ai_summary && (
3751
<meta name="ai-summary" content={frontmatter.ai_summary} />

0 commit comments

Comments
 (0)