feat: trying to optimize builds
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user