From 7344932e8dd24218c035bb858f02278fd1b7d2a1 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 1 May 2022 11:51:12 -0500 Subject: [PATCH] Use headOptions for page details --- src/layouts/default.astro | 7 +++---- src/pages/app/[...appPath].astro | 2 -- src/pages/index.astro | 12 ++++++++++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/layouts/default.astro b/src/layouts/default.astro index cf5c7a5..64b7941 100644 --- a/src/layouts/default.astro +++ b/src/layouts/default.astro @@ -6,8 +6,8 @@ import { PageHead } from '~/helpers/config.js' import VueBaseLayout from '../../layouts/base.vue' const { - headTitle, - headDescription, + // headTitle, + // headDescription, headOptions = {} } = Astro.props @@ -19,12 +19,11 @@ const pageHead = new PageHead({ ...headOptions }) -console.log( 'pageHead', pageHead.meta ) --- - { headTitle } + { pageHead.title } diff --git a/src/pages/app/[...appPath].astro b/src/pages/app/[...appPath].astro index 581560e..404d84d 100644 --- a/src/pages/app/[...appPath].astro +++ b/src/pages/app/[...appPath].astro @@ -47,8 +47,6 @@ const listingDetails = new ListingDetails( appListing ) --- diff --git a/src/pages/index.astro b/src/pages/index.astro index 606c2f9..e2ca55c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -14,8 +14,16 @@ const description = 'Does It ARM?' // https://docs.astro.build/core-concepts/astro-components/ --- Works!