Skip to content

Commit

Permalink
feat(blog): fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
noghartt committed Nov 3, 2024
1 parent eac7a71 commit fbc636c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/blog/[slug]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const readingTime = remarkPluginFrontmatter.readingTime;
</p>
{lastCommit ? (
<p>
<strong>Last updated at:</strong>
<strong>Updated at:</strong>
<span>
{dayjs(lastCommit.date).format('YYYY-MM-DD HH:mm')}
(<Link href={`${GITHUB_REPO_URL}/commit/${lastCommit.hash.slice(0, 7)}`} isExternal>{lastCommit.hash.slice(0, 7)}</Link>)
Expand All @@ -99,7 +99,7 @@ const readingTime = remarkPluginFrontmatter.readingTime;
) : null}
<section class="tags">
<strong>Tags:</strong>
{post.data.tags.map((tag: string) => (
{(post.data.tags || []).map((tag: string) => (
<Link href={`/tag/${tag}`}>
<p>#{tag}</p>
</Link>
Expand Down

0 comments on commit fbc636c

Please sign in to comment.