diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index e6435112..aface4eb 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/astro.config.mjs b/astro.config.mjs index ee8018c5..2f878675 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -7,7 +7,6 @@ import netlify from "@astrojs/netlify/functions"; export default defineConfig({ site: 'https://biancafiore.me', - trailingSlash: 'always', integrations: [mdx(), sitemap(), react(), partytown()], output: "server", adapter: netlify(), diff --git a/package.json b/package.json index c576a153..eb4ecf91 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "@astrojs/react": "^3.0.7", "@astrojs/rss": "^4.0.1", "@astrojs/sitemap": "^3.0.3", + "@fontsource-variable/literata": "^5.0.19", + "@fontsource/zilla-slab": "^5.0.8", "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "astro": "^4.0.3", diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index bb80dcc0..3ea65118 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -1,7 +1,7 @@ --- -// Import the global.css file here so that it is included on -// all pages through the use of the component. -import '../styles/global.css'; +import '../styles/index.css' +import '@fontsource/zilla-slab'; +import '@fontsource-variable/literata'; interface Props { title: string; @@ -10,36 +10,22 @@ interface Props { } const canonicalURL = new URL(Astro.url.pathname, Astro.site); -// const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props; --- - - - - - - - - - {title} - - - - diff --git a/src/components/layouts/BlogPost.astro b/src/components/layouts/BlogPost.astro new file mode 100644 index 00000000..7584b22f --- /dev/null +++ b/src/components/layouts/BlogPost.astro @@ -0,0 +1,46 @@ +--- +import type { CollectionEntry } from 'astro:content'; +import BaseHead from '../BaseHead.astro'; +import Header from '../Header.astro'; +import Footer from '../Footer.astro'; +import FormattedDate from '../FormattedDate.astro'; + +type Props = CollectionEntry<'blog'>['data']; + +const { title, description, pubDate, updatedDate, heroImage } = Astro.props; +--- + + + + + + + +
+
+
+
+ {heroImage && } +
+
+
+
+ + { + updatedDate && ( +
+ Last updated on +
+ ) + } +
+

{title}

+
+
+ +
+
+
+