From 527bc7447c0a561fcb2f0e8dc41347b294cca511 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Tue, 23 Jan 2024 21:28:28 -0800 Subject: [PATCH] up --- .../astro-ghostcms-theme-default/package.json | 2 +- .../src/layouts/default.astro | 82 +++++++++++++++++-- 2 files changed, 75 insertions(+), 9 deletions(-) diff --git a/packages/astro-ghostcms-theme-default/package.json b/packages/astro-ghostcms-theme-default/package.json index 3338d7e3..28b9d6dd 100644 --- a/packages/astro-ghostcms-theme-default/package.json +++ b/packages/astro-ghostcms-theme-default/package.json @@ -1,7 +1,7 @@ { "name": "@matthiesenxyz/astro-ghostcms-theme-default", "description": "Default Theme for astro-ghostcms", - "version": "0.0.6", + "version": "0.0.7", "homepage": "https://astro-ghostcms.xyz/", "type": "module", "license": "MIT", diff --git a/packages/astro-ghostcms-theme-default/src/layouts/default.astro b/packages/astro-ghostcms-theme-default/src/layouts/default.astro index 49620c47..04f428e9 100644 --- a/packages/astro-ghostcms-theme-default/src/layouts/default.astro +++ b/packages/astro-ghostcms-theme-default/src/layouts/default.astro @@ -1,7 +1,9 @@ --- import type { Settings } from "@matthiesenxyz/astro-ghostcms/api"; -import BaseHead from "../components/BaseHead.astro"; +import { AstroFont } from "astro-font"; +import { ViewTransitions } from 'astro:transitions'; import MainLayout from "../components/MainLayout.astro"; + export type Props = { content?: { title: string; @@ -9,21 +11,85 @@ export type Props = { }; bodyClass?: string; settings: Settings; + image?: string; + permalink?: string; }; -const { content, settings, bodyClass = "" } = Astro.props as Props; +const { content, permalink, image, settings, bodyClass = "" } = Astro.props as Props; const ghostAccentColor = settings.accent_color; --- - + + + + + {content ? content.title + "|" + settings.title : settings.title} + + + {content?.description && } + + + + + + + + + + + + + + {permalink && } + {content?.description && } + {image && } + + + + + {permalink && } + {content?.description && } + {image && } + + + + + +