feat: trying to optimize builds

This commit is contained in:
Max Richter
2025-10-25 13:34:18 +02:00
parent cd59ecc22c
commit 2f08c7f4c2
7 changed files with 42 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ import { getCollection, render } from "astro:content";
import { getLocale } from "astro-i18n-aut";
import { filterCollection, parseSlug } from "@i18n/utils";
import MetaTags from "@components/MetaTags.astro";
import { markdownToText } from "@helpers/markdown";
const locale = getLocale(Astro.url);
@@ -32,5 +33,9 @@ if (!page) {
const { Content } = await render(page);
---
<MetaTags title={page.data.title} cover={page.data.cover?.src} />
<MetaTags
title={page.data.title}
cover={page.data.cover?.src}
description={page.data.description || markdownToText(page.body).slice(0, 200)}
/>
<Content />