Skip to content

Commit

Permalink
configure og:image
Browse files Browse the repository at this point in the history
  • Loading branch information
natserract committed Nov 8, 2024
1 parent 24c038a commit 8b08791
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
3 changes: 2 additions & 1 deletion src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Props {
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const {title: pageTitle, description: pageDescription, image = "/og/natserract.jpg"} = Astro.props;
const {title: pageTitle, description: pageDescription} = Astro.props;
let title = pageTitle;
if (Astro.url.pathname == "/") {
Expand All @@ -28,6 +28,7 @@ if (Astro.url.pathname == "/") {
}
const description = pageDescription ? `${pageDescription} - ${SITE_DESCRIPTION}` : `${SITE_DESCRIPTION}`;
const image = "og.jpg"
---

<!-- Global Metadata -->
Expand Down
1 change: 1 addition & 0 deletions src/content/post/a-tour-of-goroutines.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: A Tour of Goroutines
heroImg: https://brittanyellich.com/gophercon-2022/featured-image.jpeg
author: content/authors/natserract.md
date: 2024-05-23T16:00:00.000Z
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const posts = (await getCollection("post")).sort(
);
---

<Layout>
<Layout title="Natserract">
<div class="leading-6">
<div class="mb-7 text-sm font-lato">
<h3 class="text-2xl font-bold mb-5 border-b border-gray-250 font-eb-garamond pb-2">
Expand Down

0 comments on commit 8b08791

Please sign in to comment.