Publih On: 2023-12-02
Learn how to create and update promotion widgets on the Blacks Astro JS template.
Full documentation: Widget guide →
All promotion widgets are in the folder:
src/content/services
This area displays promotional services or blog links on your post articles.
Important: You need to create four promotion widget files. The template expects four — fewer will leave empty slots.
To add a new widget:
.md file inside src/content/services/Unlike regular pages, widgets do not need content below the frontmatter — the frontmatter alone drives the widget display.
---
layout: ../../design/servicespost.astro
title: insert title in here...
link: link for widget promotion...
description: insert description here...
image: insert url image here...
pubDate: 2023-11-28
---
| Field | Purpose |
|---|---|
layout |
Widget layout template. Don’t change this. |
title |
Widget title — displayed on the article page |
link |
URL the widget points to (relative or absolute) |
description |
Short description shown under the title |
image |
Cover image for the widget |
pubDate |
Publication date — format: YYYY-MM-DD |
After updating:
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