Publih On: 2023-12-02
Learn how to write and publish blog articles on the Blacks Astro JS template.
Full documentation: Blog guide →
All blog posts are in the folder:
src/pages/blog
This area is for writing blog post articles.
Important: Do not delete or change the
[..page].astrofile. This file handles pagination and is required for the blog to work.
To create a new article:
.md file inside src/pages/blog/hello-world.mdThe filename becomes the URL. For example:
src/pages/blog/hello-world.md → /blog/hello-world/---
layout: ../../design/blog/blogpost.astro
title: "Write your title in here"
description: "Insert description here"
image: insert your image url
pubDate: 2023-12-04
tags: ["insert tag here", "tag1", "tag2"]
categories: ["insert categories in here"]
---
Write your content with markdown lang here...
| Field | Purpose |
|---|---|
layout |
Blog post layout template. Don’t change this. |
title |
Article title — appears on the post page and in listings |
description |
Short summary — used for SEO and social previews |
image |
Cover image for the article |
pubDate |
Publication date — format: YYYY-MM-DD |
tags |
Array of tags. Creates tag archive pages automatically. |
categories |
Array of categories. Creates category archive pages automatically. |
pubDate field determines the post order — newest first.portfolio in one post, don’t use portfolios in another.For a simpler workflow:
src/pages/blog/No configuration required. The blog index updates automatically.
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