aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog/index.astro
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-01 23:05:41 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-01 23:05:41 -0500
commit2c2bdccd645cafd26318c2f2659242f046b61daf (patch)
tree64cbbaa89219f839df011b6e0d2b14e82a564c88 /src/pages/blog/index.astro
parent606bbf0cd1d6a2cfaafe4bcb6519854b0cc55810 (diff)
downloadpersonal-website-2c2bdccd645cafd26318c2f2659242f046b61daf.tar.gz
personal-website-2c2bdccd645cafd26318c2f2659242f046b61daf.tar.bz2
personal-website-2c2bdccd645cafd26318c2f2659242f046b61daf.zip
Sorting out images and tags
Diffstat (limited to 'src/pages/blog/index.astro')
-rw-r--r--src/pages/blog/index.astro10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro
index 1614f2f..f782cdc 100644
--- a/src/pages/blog/index.astro
+++ b/src/pages/blog/index.astro
@@ -13,7 +13,9 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.date.va
<h1><a href={`/blog/${post.slug}`}>{post.data.title}</a></h1>
<small>{formatDate(post.data.date)}</small>
<p>{post.data.description}</p>
- <a href={`/blog/${post.slug}`}>Read more</a>
+ <div class="tags">
+ <a href={`/blog/${post.slug}`}>tag1</a>
+ </div>
</article>
))
}
@@ -26,6 +28,12 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.date.va
margin-bottom: 2px;
}
+ .tags {
+ display: flex;
+ flex-direction: row;
+ gap: 1em;
+ }
+
article {
background-color: #3B513B;
padding: 1.2em;