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 3904be8 commit b6c3455Copy full SHA for b6c3455
src/layouts/RootLayout.astro
@@ -5,13 +5,13 @@ import NpmPackageSearch from "../components/NpmPackageSearch.svelte";
5
import "../styles/global.css";
6
import "../styles/shiki.css";
7
8
-type Props = {
+interface Props {
9
title: string;
10
description: string;
11
-};
+}
12
13
-const { title: t, description } = Astro.props;
14
-const title = Astro.url.pathname === "/" ? "jsDocs.io" : `${t} - jsDocs.io`;
+const title = Astro.url.pathname === "/" ? "jsDocs.io" : `${Astro.props.title} - jsDocs.io`;
+const { description } = Astro.props;
15
const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
16
const ogImageUrl = new URL("og.jpg", Astro.site); // TODO: add image
17
const ogImageAlt = "Social image for jsDocs.io";
0 commit comments