1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00
blog/src/layouts/Post/Date.astro
Matthias Kretschmann 05ad0470c2
migrate to biome (#944)
* migrate to biome

* cleanup

* fix

* use tsx

* script tweaks

* fix test runs

* path tweaks
2024-07-27 21:15:05 +01:00

26 lines
445 B
Plaintext

---
import Time from '@/components/Time.astro'
type Props = {
date: Date | undefined
updated?: Date
}
const { date, updated } = Astro.props
---
<style>
.date {
font-style: italic;
font-size: var(--font-size-small);
color: var(--text-color-light);
margin-bottom: calc(var(--spacer) / 2);
}
</style>
<div class="date">
<Time date={date} />
{updated && ' • updated '}
{updated && <Time date={updated} />}
</div>