Publih On: 2023-12-02
Learn how to configure your Blacks Astro JS template using JSON data files.
Full documentation: Configuration guide →
All configuration data lives in:
src/data/
Two files control the entire site:
| File | Purpose |
|---|---|
config.json |
Site-wide settings — title, description, navigation, social, contact |
home.json |
Homepage content — hero, features, gallery, services |
Both files use the same principle: change the values, save the file, the site updates.
config.jsonOpen src/data/config.json and update the values to match your project.
Example structure:
{
"url": "insert your website url domain here",
"title": "insert title in here",
"description": "Your website description",
"favicon": "url image for your favicon",
"image": "url image for image banner",
"navbar": "Navbar title in here",
"nav_list": [
{
"nav": "Home",
"link": "/"
},
{
"nav": "This is nav name",
"link": "url for your nav menu in here"
}
],
"social": [
{
"title": "Facebook",
"link": "https://www.fiverr.com/creativitas/"
},
{
"title": "This is your social media name",
"link": "social media url in here"
},
{
"title": "Instagram",
"link": "https://www.fiverr.com/creativitas/create-your-custom-website-and-app"
}
],
"contact": {
"address": "insert your address in here",
"city": "insert city here",
"country": "Insert country in here",
"phone": "insert your phone number here",
"email": "insert your email here"
}
}
To add a new menu item, copy this block and paste it inside nav_list:
{
"nav": "New nav name",
"link": "url for your nav menu"
}
To add a new social link, copy this block and paste it inside social:
{
"title": "Your Social Name",
"link": "your social url"
}
home.jsonNext, move to src/data/home.json. The concept is the same as config.json — just change the values to match your homepage.
home.json controls:
"text" — not single quotes.After updating any data file:
If something breaks, check the terminal for error messages — most issues are caused by a missing comma or an extra quote.
If 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