mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
update content
This commit is contained in:
@@ -4,7 +4,7 @@ import { markdownify } from "@/lib/utils/textConverter";
|
|||||||
import { Image } from "@astrojs/image/components";
|
import { Image } from "@astrojs/image/components";
|
||||||
import { getEntryBySlug } from "astro:content";
|
import { getEntryBySlug } from "astro:content";
|
||||||
|
|
||||||
const about = await getEntryBySlug("about", "index");
|
const about = await getEntryBySlug("about", "-index");
|
||||||
const { Content } = await about.render();
|
const { Content } = await about.render();
|
||||||
const { title, description, meta_title, image } = about.data;
|
const { title, description, meta_title, image } = about.data;
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import Base from "@/layouts/Base.astro";
|
|||||||
import PageHeader from "@/partials/PageHeader.astro";
|
import PageHeader from "@/partials/PageHeader.astro";
|
||||||
import { getEntryBySlug } from "astro:content";
|
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 { contact_form_action }: { contact_form_action: string } = config.params;
|
||||||
const { title, description, meta_title, image } = contact.data;
|
const { title, description, meta_title, image } = contact.data;
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ interface Homepage {
|
|||||||
features: Feature[];
|
features: Feature[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const homepage = await getEntryBySlug("homepage", "index");
|
const homepage = await getEntryBySlug("homepage", "-index");
|
||||||
const testimonial = await getEntryBySlug("sections", "testimonial");
|
const testimonial = await getEntryBySlug("sections", "testimonial");
|
||||||
const call_to_action = await getEntryBySlug("sections", "call-to-action");
|
const call_to_action = await getEntryBySlug("sections", "call-to-action");
|
||||||
const { banner, features }: Homepage = homepage.data;
|
const { banner, features }: Homepage = homepage.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user