tags and such

This commit is contained in:
2023-03-06 02:58:39 +00:00
parent 74a29aed1a
commit 5e6de8a452
28 changed files with 213 additions and 177 deletions
+18 -16
View File
@@ -7,23 +7,25 @@ interface Props {
date: String
}
const { title, date } = Astro.props
const { title, date, slug } = Astro.props
---
<div class="blog-header">
<h2>{title}</h2>
<h3>
<!-- <img class="svg-icon" src={calendarIcon} alt="" /> -->
<Calendar />
<FormattedDate date={date} />
</h3>
</div>
<h2>
{slug ? <a href={`/posts/${slug}`}>{title}</a> : title}
<h3>
<!-- <img class="svg-icon" src={calendarIcon} alt="" /> -->
<Calendar />
<FormattedDate date={date} />
</h3>
</h2>
<style>
h3 {
display: flex;
align-items: center;
gap: 6px;
font-size: 1.1rem;
}
</style>
<style>
h3 {
display: flex;
align-items: center;
gap: 6px;
font-size: 1.1rem;
}
</style>
</div>