mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
update about and contact page
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "astroplate",
|
||||
"version": "1.3.4",
|
||||
"version": "1.4.0",
|
||||
"description": "Astro and Tailwindcss boilerplate",
|
||||
"author": "zeon.studio",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -4,9 +4,9 @@ import { markdownify } from "@/lib/utils/textConverter";
|
||||
import { Image } from "@astrojs/image/components";
|
||||
import { getEntryBySlug } from "astro:content";
|
||||
|
||||
const entry = await getEntryBySlug("pages", "about");
|
||||
const { Content } = await entry.render();
|
||||
const { title, description, meta_title, image } = entry.data;
|
||||
const about = await getEntryBySlug("about", "index");
|
||||
const { Content } = await about.render();
|
||||
const { title, description, meta_title, image } = about.data;
|
||||
---
|
||||
|
||||
<Base
|
||||
|
||||
@@ -4,9 +4,9 @@ import Base from "@/layouts/Base.astro";
|
||||
import PageHeader from "@/partials/PageHeader.astro";
|
||||
import { getEntryBySlug } from "astro:content";
|
||||
|
||||
const entry = await getEntryBySlug("pages", "contact");
|
||||
const contact = await getEntryBySlug("contact", "index");
|
||||
const { contact_form_action }: { contact_form_action: string } = config.params;
|
||||
const { title, description, meta_title, image } = entry.data;
|
||||
const { title, description, meta_title, image } = contact.data;
|
||||
---
|
||||
|
||||
<Base
|
||||
|
||||
Reference in New Issue
Block a user