Skip to content

Commit

Permalink
new author display, change author
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelthatsme committed Jun 1, 2024
1 parent 062b125 commit 6e73e76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/layouts/BlogLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const { frontmatter } = Astro.props;
<a href="/"><span class="highlight">Back to root</span></a>
<article>
<h1>{frontmatter.title}</h1>
<i class="pub">{new Date(frontmatter.pubDate).toLocaleDateString("en-US", {
year: 'numeric',
month: 'long',
day: 'numeric'
})}</i>
<i class="pub">
{new Date(frontmatter.pubDate).toLocaleDateString("en-US", {
year: 'numeric',
month: 'long',
day: 'numeric'
})}, by {frontmatter.author}
</i>
<slot />
</article>
</main>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/jan-01-2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ layout: ../../layouts/BlogLayout.astro
title: 'The Start of Something New'
pubDate: 2024-01-01
description: 'The start of our blog.'
author: 'Hazel Hofmann'
author: 'hazelthatsme'
tags: ['gamedev', 'webdev', 'blog']
---
This is our new blog post, and the beginning of our journey.

Thanks for checking out our first blog post!
Thanks for checking out our first blog post!

0 comments on commit 6e73e76

Please sign in to comment.