From 449f71511e539878af4c65f073cdc373b469c45e Mon Sep 17 00:00:00 2001 From: João Augusto Costa Branco Marado Torres Date: Sun, 6 Jul 2025 22:27:04 -0300 Subject: feat: more structured data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Augusto Costa Branco Marado Torres --- src/components/templates/MicroBlog.astro | 27 ++++++++++++++-------- src/components/templates/Search.astro | 15 +++++++++--- src/components/templates/SimplePostList.astro | 33 +++++++++++++++++++-------- 3 files changed, 52 insertions(+), 23 deletions(-) (limited to 'src/components/templates') diff --git a/src/components/templates/MicroBlog.astro b/src/components/templates/MicroBlog.astro index c16155e..88321dc 100644 --- a/src/components/templates/MicroBlog.astro +++ b/src/components/templates/MicroBlog.astro @@ -2,12 +2,9 @@ import Date from "@components/organisms/Date.astro"; import KeywordsList from "@components/organisms/KeywordsList.astro"; import { getFirstUserID, getLastUpdate } from "@lib/collection/helpers"; -import { Micro } from "@lib/collection/schemas"; -import type { CollectionEntry, z } from "astro:content"; +import type { Micro, MicroEntry } from "@lib/collection/schemas"; -interface Props extends CollectionEntry<"blog"> { - data: z.infer; -} +interface Props extends MicroEntry {} const micro = Astro.props; const { id, data, rendered } = micro; @@ -19,10 +16,14 @@ const [first, ...names] = display.split(/\s/); const last = names.length > 0 ? names[names.length - 1] : ""; const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); --- -
+

- {title} + {title}

{ user?.website ? {little} : ( @@ -30,15 +31,21 @@ const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); ) }
- {first} {last} · + itemprop="dateModified" + />
-
+