update about and contact page

This commit is contained in:
somrat sorkar
2023-07-30 16:23:23 +06:00
parent 8c6adf664d
commit 23a89825c1
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "1.3.4",
"version": "1.4.0",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
+3 -3
View File
@@ -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
+2 -2
View File
@@ -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