HeadlinesBriefing favicon HeadlinesBriefing.com

Astro + Decap CMS: Building a Static Portfolio Blog

DEV Community •
×

An author recently built a static portfolio blog for photography and architecture using Astro and the git‑based Decap CMS. The goal was a lightweight site that stays static while still offering a visual editor for posts, avoiding a database or heavy backend. After experimenting with the CDN and npm installation options, the developer settled on a local‑backend setup that runs a separate decap‑server on port 8081.

The configuration lives in a single config.yml file placed in the public folder, and an `/admin` route hosts a minimal HTML page that imports and initializes the CMS. The author notes that authentication is unnecessary for a local test, and that the CMS can be run without exposing a remote repository. By keeping the editor isolated from the main Astro build, the workflow stays clean and the content can be processed by Astro during deployment.

This approach demonstrates how developers can combine static site generators with a lightweight CMS to streamline content creation without sacrificing performance.