page titles and favicon

This commit is contained in:
Graham Hall
2022-12-08 09:31:10 -05:00
parent 26402c3dc2
commit 4c41f0d44e
4 changed files with 5 additions and 16 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ export interface Props {
title: string;
}
const { title } = Astro.props;
const title = Astro.props.frontmatter ? Astro.props.frontmatter.title : Astro.props.title;
---
<!DOCTYPE html>
+1 -1
View File
@@ -1,5 +1,5 @@
---
layout: '../layouts/Layout.astro'
layout: ../layouts/Layout.astro
title: 'About'
---
+1 -1
View File
@@ -12,7 +12,7 @@ const posts = await response.json();
const post = posts.objects[0];
---
<Layout title="Blog">
<Layout title={post.title}>
<article>
<div style={{display: 'flex', justifyContent: 'space-between'}}>
<h4>{post.title}</h4>