attempt to put ogimage back

This commit is contained in:
Adam Matthiesen 2024-02-10 09:36:51 -08:00
parent d86c7e9928
commit 0caaecf9f7
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@matthiesenxyz/astro-ghostcms-brutalbyelian",
"description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS",
"version": "0.0.1-dev05",
"version": "0.0.1-dev06",
"homepage": "https://astro-ghostcms.xyz/",
"type": "module",
"license": "MIT",

View File

@ -2,7 +2,7 @@
import LocalFont from '../generic/LocalFont.astro';
import { ViewTransitions } from 'astro:transitions';
import { getSettings, invariant } from "@matthiesenxyz/astro-ghostcms/api";
//import { getOgImagePath } from "@matthiesenxyz/astro-ghostcms/satoriOG";
import { getOgImagePath } from "@matthiesenxyz/astro-ghostcms/satoriOG";
const settings = await getSettings();
@ -14,8 +14,7 @@ interface Props {
description: string;
}
//const ogI = new URL(getOgImagePath(Astro.url.pathname), Astro.url.origin).href;
const ogI = ""
const ogI = new URL(getOgImagePath(Astro.url.pathname), Astro.url.origin).href;
const canonicalURL = new URL(Astro.url.pathname, Astro.site);