We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1e11b commit 54e3a4aCopy full SHA for 54e3a4a
src/layouts/Layout.astro
@@ -24,7 +24,7 @@ const { title, description } = Astro.props;
24
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
25
<meta name="generator" content={Astro.generator} />
26
<title>{title}</title>
27
- <script is:inline type="application/ld+json" set:html={
+ {/^\/posts\/\w+\S+\/$/.test(Astro.url.pathname) && <script is:inline type="application/ld+json" set:html={
28
blog({
29
"@type": "BlogPosting",
30
"headline": title,
@@ -34,7 +34,7 @@ const { title, description } = Astro.props;
34
"inLanguage": "ar"
35
})
36
}>
37
- </script>
+ </script>}
38
</head>
39
<body>
40
<header class="navbar">
0 commit comments