This commit is contained in:
parent
209f61b856
commit
4d0ae0c871
|
@ -3,9 +3,10 @@ interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
ogTitle?: string;
|
ogTitle?: string;
|
||||||
ogDescription?: string;
|
ogDescription?: string;
|
||||||
|
ogURL?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, ogTitle, ogDescription } = Astro.props;
|
const { title, ogTitle, ogDescription, ogURL } = Astro.props;
|
||||||
import "../styles/main.css";
|
import "../styles/main.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ import "../styles/main.css";
|
||||||
<meta name="htmx-config" content='{"code": 204, "swap": false}' />
|
<meta name="htmx-config" content='{"code": 204, "swap": false}' />
|
||||||
|
|
||||||
<meta property="og:title" content={ogTitle ?? "blog.log101.dev"} />
|
<meta property="og:title" content={ogTitle ?? "blog.log101.dev"} />
|
||||||
<meta property="og:url" content="https://blog.log101.dev" />
|
<meta property="og:url" content={ogURL ?? "https://blog.log101.dev"} />
|
||||||
<meta
|
<meta
|
||||||
property="og:description"
|
property="og:description"
|
||||||
content={ogDescription ?? "Yazılıma dair..."}
|
content={ogDescription ?? "Yazılıma dair..."}
|
||||||
|
|
|
@ -12,6 +12,8 @@ import BookReview from "@/components/BookReview.astro";
|
||||||
|
|
||||||
const { entry } = Astro.props;
|
const { entry } = Astro.props;
|
||||||
|
|
||||||
|
const URL = Astro.url;
|
||||||
|
|
||||||
const backendHost = import.meta.env.PUBLIC_BACKEND_HOST;
|
const backendHost = import.meta.env.PUBLIC_BACKEND_HOST;
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
|
@ -32,7 +34,8 @@ export async function getStaticPaths() {
|
||||||
<Layout
|
<Layout
|
||||||
title="log101"
|
title="log101"
|
||||||
ogTitle={entry.data.title}
|
ogTitle={entry.data.title}
|
||||||
ogDescription={entry.data.summary}>
|
ogDescription={entry.data.summary}
|
||||||
|
ogURL={URL.toString()}>
|
||||||
<Header />
|
<Header />
|
||||||
{
|
{
|
||||||
entry.collection === "blog" ? (
|
entry.collection === "blog" ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user