Use headOptions for page details

This commit is contained in:
Sam Carlton 2022-05-01 11:51:12 -05:00
parent 9972a390a9
commit 7344932e8d
3 changed files with 13 additions and 8 deletions

View file

@ -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 )
---
<!doctype html>
<html lang="en">
<head>
<title>{ headTitle }</title>
<title>{ pageHead.title }</title>
<Fragment set:html={ pageHead.metaAndLinkMarkup } />
</head>
<body>