diff --git a/src/components/Base.astro b/src/components/Base.astro index ef98500..e07a0c6 100644 --- a/src/components/Base.astro +++ b/src/components/Base.astro @@ -3,7 +3,7 @@ import Header from "./Header.astro"; interface Props { title?: string; - graph: { + graph?: { description: string; url: string; type?: "website" | "article" | `${"music" | "video"}.${string}`; @@ -26,22 +26,28 @@ const title = Astro.props.title {title} - + { + graph && ( + + - - - - - - {graph.image && } - - - - - - {graph.image && } + {/* opengraph */} + + + + + {graph.image && } + {/* twt card markup */} + + + + {graph.image && } + + ) + } +