Publih On: 2023-12-02
Learn how to add and update image gallery entries on the Blacks Astro JS template.
Full documentation: Image gallery guide →
All image gallery entries are in the folder:
src/pages/gallery/image
Each Markdown file in this folder becomes one entry in the image gallery.
Important: Do not delete the
[...page].astrofile. This file handles pagination and is required for the gallery to work.
To add a new image to the gallery:
.md file inside src/pages/gallery/image/morning-light.mdThe filename becomes the URL. For example:
src/pages/gallery/image/morning-light.md → /gallery/image/morning-light/---
layout: ../../../design/gallery/imagepost.astro
title: Insert title in here..
description: Description in here..
image: insert url image here...
pubDate: 2023-12-05
tags: ["insert tag here", "tag1", "tag2"]
categories: ["insert categories here.."]
---
Write content in here...
| Field | Purpose |
|---|---|
layout |
Image post layout template. Don’t change this. |
title |
Image title — appears on the gallery listing and detail page |
description |
Short description — used for SEO and social previews |
image |
URL of the image |
pubDate |
Publication date — format: YYYY-MM-DD |
tags |
Array of tags. Creates keyword archive pages automatically. |
categories |
Array of categories. Creates concept archive pages automatically. |
portrait in one entry, don’t use portraits in another.For a faster workflow:
src/pages/gallery/image/No configuration required. The gallery 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