Skip to content
Framework: Static HTML/CSS/JSDifficulty: beginner

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

styles.css23 lines
:root { --fg: #1f2328; --muted: #656d76; --accent: #0969da; --line: #d0d7de; --bg: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --fg: #e6edf3; --muted: #8b949e; --accent: #58a6ff; --line: #30363d; --bg: #0d1117; } }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.65 Georgia, "Times New Roman", serif; color: var(--fg); background: var(--bg); }
.site-header, main, .site-footer { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-family: system-ui, sans-serif; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin-top: 32px; }
.lead, .meta { color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 32px 0; }
.post-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.post-list time { display: block; font-family: system-ui, sans-serif; font-size: 0.85rem; color: var(--muted); }
.post-list a { font-size: 1.25rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-list p { margin: 6px 0 0; color: var(--muted); }
a { color: var(--accent); }
pre { background: rgba(127,127,127,0.12); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 0.9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
blockquote { margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.site-footer { padding: 40px 20px; font-family: system-ui, sans-serif; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; }

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.

View all
  • Framework: Static HTML/CSS/JSDifficulty: beginner
    Featured

    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.