Skip to content

Commit

Permalink
fix(api): 🐛 modify og image & rss paths
Browse files Browse the repository at this point in the history
  • Loading branch information
brklntmhwk committed Nov 21, 2024
1 parent b2ea072 commit c7f054e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Footer/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const year = new Date().getFullYear();
>
<Icon class="fill-default hover:fill-zinc-400" iconName="unsplash" width={32} height={32} />
</a>
<a href={translatePath('/rss.xml/')} title="RSS" aria-label="RSS" class="no-underline">
<a href={translatePath('/rss.xml')} title="RSS" aria-label="RSS" class="no-underline">
<Icon class="fill-default hover:fill-zinc-400" iconName="rss" width={32} height={32} />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/BlogLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const tags = await getBlogTags(blogTags);
height: 630,
width: 1200,
image: new URL(
translatePath(`/api/og/${collection}/${slugWithoutLocale}.png`),
translatePath(`/api/og/${collection}/${slugWithoutLocale}.png/`),
Astro.site
),
type: 'article',
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/NewsLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const slugWithoutLocale = getSlugWithoutLocale(slug);
height: 630,
width: 1200,
image: new URL(
translatePath(`/api/og/${collection}/${slugWithoutLocale}.png`),
translatePath(`/api/og/${collection}/${slugWithoutLocale}.png/`),
Astro.site
),
type: 'article',
Expand Down

0 comments on commit c7f054e

Please sign in to comment.