diff --git a/TODO.md b/TODO.md index 3d12d89..efaf99a 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1 @@ - Tag count -- title for pages -- check header meta info diff --git a/public/monogram.png b/public/monogram.png new file mode 100644 index 0000000..90f09b8 Binary files /dev/null and b/public/monogram.png differ diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index e8333f1..e6b4eb1 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -6,21 +6,26 @@ import '../styles/preflight.css' import '../styles/global.scss' interface Props { + title?: string image?: string } const canonicalURL = new URL(Astro.url.pathname, Astro.site) -const { image = '/blog-placeholder-1.jpg' } = Astro.props +// const { image = '/blog-placeholder-1.jpg' } = Astro.props -const title = 'Astro Blog' -const description = 'Welcome to my website!' +let title = 'Niccolo Borgioli' +const description = 'Personal blog' + +if (Astro.props.title) { + title = Astro.props.title + ' - ' + title +} --- - + @@ -36,14 +41,14 @@ const description = 'Welcome to my website!' - + - +