From d39bb5a83d8de44f0b4e1a406e859cf89ee7f327 Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Tue, 12 Mar 2024 19:51:24 +0000 Subject: [PATCH] small fixes --- frontend/astro.config.js | 1 + frontend/src/components/Metadata.astro | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/astro.config.js b/frontend/astro.config.js index e487cbe..73fd985 100644 --- a/frontend/astro.config.js +++ b/frontend/astro.config.js @@ -6,6 +6,7 @@ import mdx from '@astrojs/mdx'; // https://astro.build/config export default defineConfig({ + site: import.meta.env.PROD ? 'https://filipesm.eu' : 'http://localhost:1234', integrations: [tailwind(), mdx()], markdown: { remarkPlugins: [flattenListItems], diff --git a/frontend/src/components/Metadata.astro b/frontend/src/components/Metadata.astro index 0520602..3479a41 100644 --- a/frontend/src/components/Metadata.astro +++ b/frontend/src/components/Metadata.astro @@ -28,6 +28,10 @@ const imageUrl = image -{imageUrl && } +{ + imageUrl && ( + + ) +} {image && }