diff --git a/src/components/blog/Hero.astro b/src/components/blog/Hero.astro index f4db0a4..ed59400 100644 --- a/src/components/blog/Hero.astro +++ b/src/components/blog/Hero.astro @@ -2,6 +2,9 @@ import type { CollectionEntry } from 'astro:content' import { Image } from 'astro:assets' import FormattedDate from '../FormattedDate.astro' +import Card from '../Card.astro' +import { Icon } from 'astro-icon/components' +import Label from '../Label.astro' interface Props { content: CollectionEntry<'post'> @@ -32,11 +35,23 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = { ) } {data.draft ? (Draft) : null} +

/{' '} {remarkPluginFrontmatter.minutesRead}

+ + +

{data.title} @@ -79,6 +94,14 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = { ) } +{ + (data.description + '').trim().length > 0 && ( + +
{data.description}
+
+ ) +} +