Skip to content

Commit

Permalink
🐞fix: fix metadatas (image)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanosea committed May 6, 2024
1 parent 8ecd196 commit 76b5778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export interface Props {
const { article } = Astro.props;
const description = Astro.props.description || "yanosea";
const imageUrl = Astro.props.imageUrl || process.env.GITHUB_AVATAR_URL;
const imageUrl =
Astro.props.imageUrl ||
"https://avatars.githubusercontent.com/u/81510859?v=4";
const title = Astro.props.title ? `${Astro.props.title} | yanosea` : "yanosea";
const url = new URL(Astro.props.url || "", "https://yanosea.org/").toString();
---
Expand Down
1 change: 1 addition & 0 deletions front/src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const { Content } = await entry.render();
title=`${entry.data.title} - blog`
description={entry.data.description}
article
imageUrl={entry.data.images[0].url}
blogComments
>
<article class="m-auto space-y-6">
Expand Down

0 comments on commit 76b5778

Please sign in to comment.