okay its a new error... lets see if this fixes it
This commit is contained in:
parent
5d37c79ad1
commit
558cda7f83
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/astro-ghostcms-brutalbyelian",
|
"name": "@matthiesenxyz/astro-ghostcms-brutalbyelian",
|
||||||
"description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS",
|
"description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS",
|
||||||
"version": "0.0.1-dev03",
|
"version": "0.0.1-dev04",
|
||||||
"homepage": "https://astro-ghostcms.xyz/",
|
"homepage": "https://astro-ghostcms.xyz/",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -45,7 +45,6 @@
|
||||||
"astro": "^4.2.0"
|
"astro": "^4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@resvg/resvg-js": "^2.6.0",
|
|
||||||
"@typescript-eslint/parser": "^6.15.0",
|
"@typescript-eslint/parser": "^6.15.0",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-astro": "^0.29.1",
|
"eslint-plugin-astro": "^0.29.1",
|
||||||
|
|
|
@ -12,18 +12,13 @@ const Ghosttitle = settings.title;
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
ogImage?: URL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ogI = new URL(getOgImagePath(Astro.url.pathname), Astro.url.origin).href;
|
const ogI = new URL(getOgImagePath(Astro.url.pathname), Astro.url.origin).href;
|
||||||
|
|
||||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||||
|
|
||||||
if (Astro.props.ogImage === undefined) {
|
const { title, description } = Astro.props;
|
||||||
Astro.props.ogImage = new URL('/v1/generate/og/default.png', Astro.url);
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, description, ogImage } = Astro.props;
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -9,14 +9,13 @@ interface Props {
|
||||||
description: string;
|
description: string;
|
||||||
classList?: string;
|
classList?: string;
|
||||||
pageTitle?: string;
|
pageTitle?: string;
|
||||||
ogImage?: URL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, description, classList, pageTitle, ogImage } = Astro.props;
|
const { title, description, classList, pageTitle } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang='en' class='h-full'>
|
<html lang='en' class='h-full'>
|
||||||
<BaseHead ogImage={ogImage} title={title} description={description} />
|
<BaseHead title={title} description={description} />
|
||||||
|
|
||||||
<body class:list={[classList]}>
|
<body class:list={[classList]}>
|
||||||
<BaseNavigation {pageTitle} />
|
<BaseNavigation {pageTitle} />
|
||||||
|
|
|
@ -3,8 +3,6 @@ import BlogPost from "../layouts/Default.astro"
|
||||||
import { getAllPosts, getAllPages, getSettings, invariant } from "@matthiesenxyz/astro-ghostcms/api";
|
import { getAllPosts, getAllPages, getSettings, invariant } from "@matthiesenxyz/astro-ghostcms/api";
|
||||||
import type { InferGetStaticPropsType } from "astro";
|
import type { InferGetStaticPropsType } from "astro";
|
||||||
import RecentBlogPosts from "../components/generic/RecentBlogPosts.astro";
|
import RecentBlogPosts from "../components/generic/RecentBlogPosts.astro";
|
||||||
import FeatureImage from "../components/generic/Featureimage.astro";
|
|
||||||
import { formatDate } from "../utils";
|
|
||||||
import BlogPostHeader from "../components/blog/BlogPostHeader.astro";
|
import BlogPostHeader from "../components/blog/BlogPostHeader.astro";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
|
|
Loading…
Reference in New Issue