Multi-page blog
A plain HTML and CSS blog with a post index, two example posts, and an about page. No build step.
Four HTML pages sharing one stylesheet: a post index, two posts under posts/, and an about page. Typography-first styling with automatic dark mode via prefers-color-scheme, semantic article markup with dates, and a tiny script that marks the current page in the navigation. Adding a post is copying a file.
- html
- css
- blog
- multi-page
- static
This preview is the template's actual file tree and source code — exactly what is copied into a new project. Codexa does not publish screenshots or mock-ups of templates; run the project to see it rendered.
Files7 files
// Highlight the current page in the navigation.
document.querySelectorAll("nav a").forEach((a) => {
const target = a.getAttribute("href").split("/").pop();
const current = location.pathname.split("/").pop() || "index.html";
if (target === current || (current === "" && target === "index.html")) a.setAttribute("aria-current", "page");
});
Dependencies
This template has no dependencies and no build step; files are served as-is.
How it runs
- Framework
- Static HTML/CSS/JS
- Dev command
- codexa-static
- Build command
- none (static files)
- Output directory
- .
- Port
- 5173
- Opens at
- /
- Difficulty
- beginner
Projects run in an isolated sandbox with a live preview. Read the projects documentation for details on settings, snapshots and deployment.
More websites templates
View all- Framework: Static HTML/CSS/JSDifficulty: beginnerFeatured
Static website
Plain HTML, CSS, and JavaScript with no build step. Ideal for simple sites and learning.
- html
- css
- javascript
- static
4 files
Need the raw data? GET /api/v1/templates/static-blog returns this template with its files.
Build on Multi-page blog
Create a free account, start from this template, and ask the AI agent to turn it into your app.