aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-05 21:16:42 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-05 21:24:35 -0500
commitbf7ebfa81791703959015c9b1b8ddbc4edae5ee3 (patch)
tree730e9eb3cc0843e93a2e02007f1f9f63f32df8c8 /src/pages/blog
parent0fed60dc83db376ddb3f7c835894db29dfe51994 (diff)
downloadpersonal-website-bf7ebfa81791703959015c9b1b8ddbc4edae5ee3.tar.gz
personal-website-bf7ebfa81791703959015c9b1b8ddbc4edae5ee3.tar.bz2
personal-website-bf7ebfa81791703959015c9b1b8ddbc4edae5ee3.zip
Tags in blog post
Diffstat (limited to 'src/pages/blog')
-rw-r--r--src/pages/blog/[...slug].astro2
-rw-r--r--src/pages/blog/tags/[tag].astro2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro
index e0b07e9..86690c6 100644
--- a/src/pages/blog/[...slug].astro
+++ b/src/pages/blog/[...slug].astro
@@ -16,7 +16,7 @@ if(entry === undefined) {
const { Content } = await entry.render();
---
-<Page title={entry.data.title} description={entry.data.description} pubDate={formatDate(entry.data.pubDate)}>
+<Page title={entry.data.title} description={entry.data.description} pubDate={formatDate(entry.data.pubDate)} tags={entry.data.tags}>
<main>
<a href="/blog" class="back-link">← All articles</a>
<article>
diff --git a/src/pages/blog/tags/[tag].astro b/src/pages/blog/tags/[tag].astro
index 31d9b94..6e32622 100644
--- a/src/pages/blog/tags/[tag].astro
+++ b/src/pages/blog/tags/[tag].astro
@@ -28,7 +28,7 @@ const { posts } = Astro.props;
<div class="grid">
{posts && posts.map((post) => {
return (
- <article class="card">>
+ <article class="card">
<h1><a href=`/blog/${post.frontmatter.slug}`>{post.frontmatter.title}</a></h1>
<small>{formatDate(post.frontmatter.pubDate)}</small>
<p>{post.frontmatter.description}</p>