Publih On: 2023-12-02
Learn how to update the contact page on the Blacks Astro JS template.
Full documentation: Contact page guide →
Open the file:
src/pages/contact/index.md
This file controls the content of your contact page.
---
layout: ../../design/contact.astro
title: title for contact page here...
description: Your description in here
image: insert url image here..
---
write your contact content here...
| Field | Purpose |
|---|---|
layout |
Contact page layout template. Don’t change this. |
title |
Page title — appears in the browser tab and SEO |
description |
Meta description — used by Google and social previews |
image |
Cover image for the contact page |
The contact details (address, phone, email) are stored in src/data/config.json under the contact section. Update them there — not in the contact page file.
Example — src/data/config.json:
"contact": {
"address": "123 Creative Street",
"city": "Los Angeles, CA 90001",
"country": "United States",
"phone": "+1 234 567 890",
"email": "hello@yourdomain.com"
}
After updating:
localhost:4321/contact to see the resultIf you need custom work or a headless CMS integrated, our team can help.
One Astro template for portfolio, company profile, blog, and creative work. Image gallery, cinematic video, blog system, and full SEO. Built for creators.
123 Creative Street
Los Angeles, CA 90001
United States
+1 234 567 890
hello@yourdomain.com