Skip to content

Commit 73020f9

Browse files
authored
feat: add operating system and URL metadata to portfolio items for improved structured data
1 parent 8f0e185 commit 73020f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/portfolio/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ const categoryColors: Record<string, string> = {
115115
itemscope
116116
itemtype="https://schema.org/SoftwareApplication"
117117
>
118+
<meta itemprop="operatingSystem" content="Web" />
119+
<meta itemprop="url" content={`${siteUrl}/portfolio/${item.id}/`} />
118120
<div class="mb-4 flex items-center justify-between">
119121
<span class={`inline-block rounded-full border px-3 py-1 text-xs font-semibold ${categoryColors[item.data.category] || categoryColors["Development"]}`} itemprop="applicationCategory">
120122
{item.data.category}

0 commit comments

Comments
 (0)