test astro url

This commit is contained in:
Surjith S M
2022-11-11 13:48:15 +05:30
parent 5ccc4c357c
commit 32e72f2bfb

View File

@@ -16,6 +16,7 @@ export interface Props {
// console.log(src); // console.log(src);
const resolvedImageWithDomain = new URL("/opengraph.jpg", Astro.url).toString(); const resolvedImageWithDomain = new URL("/opengraph.jpg", Astro.url).toString();
const { title } = Astro.props; const { title } = Astro.props;
console.log(resolvedImageWithDomain, Astro.url);
const makeTitle = title const makeTitle = title
? title + " | " + "Astroship" ? title + " | " + "Astroship"