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",
|
||||
"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/",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
@ -45,7 +45,6 @@
|
|||
"astro": "^4.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@resvg/resvg-js": "^2.6.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-astro": "^0.29.1",
|
||||
|
|
|
@ -12,18 +12,13 @@ const Ghosttitle = settings.title;
|
|||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
ogImage?: URL;
|
||||
}
|
||||
|
||||
const ogI = new URL(getOgImagePath(Astro.url.pathname), Astro.url.origin).href;
|
||||
|
||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||
|
||||
if (Astro.props.ogImage === undefined) {
|
||||
Astro.props.ogImage = new URL('/v1/generate/og/default.png', Astro.url);
|
||||
}
|
||||
|
||||
const { title, description, ogImage } = Astro.props;
|
||||
const { title, description } = Astro.props;
|
||||
---
|
||||
|
||||
<head>
|
||||
|
|
|
@ -9,14 +9,13 @@ interface Props {
|
|||
description: string;
|
||||
classList?: 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'>
|
||||
<BaseHead ogImage={ogImage} title={title} description={description} />
|
||||
<BaseHead title={title} description={description} />
|
||||
|
||||
<body class:list={[classList]}>
|
||||
<BaseNavigation {pageTitle} />
|
||||
|
|
|
@ -3,8 +3,6 @@ import BlogPost from "../layouts/Default.astro"
|
|||
import { getAllPosts, getAllPages, getSettings, invariant } from "@matthiesenxyz/astro-ghostcms/api";
|
||||
import type { InferGetStaticPropsType } from "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";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
|
|
Loading…
Reference in New Issue