update content

This commit is contained in:
somrat sorkar
2023-07-31 11:07:44 +06:00
parent 23a89825c1
commit 692dde74d6
6 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { markdownify } from "@/lib/utils/textConverter";
import { Image } from "@astrojs/image/components";
import { getEntryBySlug } from "astro:content";
const about = await getEntryBySlug("about", "index");
const about = await getEntryBySlug("about", "-index");
const { Content } = await about.render();
const { title, description, meta_title, image } = about.data;
---
+1 -1
View File
@@ -4,7 +4,7 @@ import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { getEntryBySlug } from "astro:content";
const contact = await getEntryBySlug("contact", "index");
const contact = await getEntryBySlug("contact", "-index");
const { contact_form_action }: { contact_form_action: string } = config.params;
const { title, description, meta_title, image } = contact.data;
---
+1 -1
View File
@@ -18,7 +18,7 @@ interface Homepage {
features: Feature[];
}
const homepage = await getEntryBySlug("homepage", "index");
const homepage = await getEntryBySlug("homepage", "-index");
const testimonial = await getEntryBySlug("sections", "testimonial");
const call_to_action = await getEntryBySlug("sections", "call-to-action");
const { banner, features }: Homepage = homepage.data;