Skip to content
ThemeRove
Menu

Rove Blog — React Blog Starter documentation

Last updated 28 Nov 2026

A calm, reading-first blog built with React 19 and Vite 8. Posts are Markdown files, every page is pre-rendered to static HTML at build time (so it loads fast, is easy for search engines to read and works without JavaScript), and React takes over in the browser for instant page changes.

Part of the Rove Blog family by ThemeRove: the same design is available for WordPress, Blogger, HTML, Bootstrap, Tailwind CSS and Shopify.

All posts, authors and text in this starter are placeholders. Replace them with your own before you publish.

Features

  • Home page with a featured post, “Latest” grid, topics and newsletter sign-up
  • Post pages with breadcrumbs, byline, reading time, cover image, table of contents that follows your scroll, reading-progress bar, tags, share links, author box, previous/next and related posts
  • Topic (category), tag and author archives with pagination; client-side search; About, Contact and 404 pages
  • Light and dark mode: follows the system, remembers the reader’s choice, no flash on load
  • SEO: per-page title, description, canonical URL and Open Graph tags; JSON-LD (Blog, BlogPosting, BreadcrumbList); feed.xml (RSS), sitemap.xml and robots.txt generated at build
  • Accessibility: skip link, landmarks, one <h1> per page, visible focus, keyboard-friendly menu (Esc closes), focus moved to the page after navigation, reduced-motion support. Checked with axe-core (WCAG 2.2 AA rules) in light and dark mode with no violations at release.
  • Print stylesheet for posts (just the article, with link addresses written out)
  • No external requests: system fonts, original SVG cover art, no analytics, no third-party scripts
  • Three runtime dependencies: react, react-dom and marked. A small built-in router (src/lib/router.jsx) — no router library.

Requirements

Node.js 20.19+ or 22.12+ and npm.

Quick start

npm install
npm run dev        # http://localhost:5173
npm run build      # static site in dist/
npm run preview    # serve dist/ locally, as a static host would

Write a post

Add a Markdown file to content/posts/. The file name becomes the URL: content/posts/my-first-post.md → /posts/my-first-post.

---
title: My first post
dek: One or two sentences shown under the title and on cards.
date: 2026-12-01
updated: 2026-12-03          # optional
category: writing            # a key from content/site.js
tags: [writing, notes]
author: rove-editorial       # a key from content/site.js
cover: /covers/my-cover.svg  # optional, put images in public/
coverAlt: Describe the image for people who can't see it
coverCaption: Optional caption under the cover
featured: true               # optional, shown in the home page hero
draft: true                  # optional, hidden from the site
---

Your post in Markdown. Use ## and ### headings — they build the table of contents.

Extras inside posts:

  • > [!NOTE] text — a highlighted callout
  • > [!PULL] text — a large pull quote
  • ![alt text](/path/image.svg "Caption") on its own line — a figure with a caption
  • Fenced code blocks get a language label and a copy button; tables scroll on small screens

Markdown is treated as trusted author content (HTML inside it is kept). Don’t render visitor-submitted text through it.

Make it yours

  • Site name, description, URL, menu, authors and topics: content/site.js. Set url to your real domain — it is used for canonical URLs, the feed and the sitemap.
  • Colours and fonts: the CSS variables at the top of src/styles.css (light and dark sets).
  • Logo: src/components/Wordmark.jsx and public/favicon.svg.
  • Newsletter and contact forms: this is a static site, so forms need a backend. Set forms.newsletter / forms.contact in content/site.js to the URL of your form service or endpoint; until then the forms show a note and send nothing.
  • Comments: off by default. Add your comments component where the “Comments” section is in src/pages/Post.jsx.
  • Social images: og:image isn’t set because the covers are SVG, which most social sites don’t accept. Add a PNG/JPG and an og:image tag in src/lib/head.jsx if you want link previews with images.

Deploy

npm run build writes a static site to dist/. Pages use clean URLs: /posts/my-first-post is the file dist/posts/my-first-post.html, and dist/404.html is the not-found page.

  • Netlify, Cloudflare Pages, GitHub Pages: publish dist/ — clean URLs and 404.html work out of the box.

  • Vercel: publish dist/ and set "cleanUrls": true in vercel.json.

  • nginx:

    root /var/www/blog/dist;
    location / { try_files $uri $uri.html $uri/ =404; }
    error_page 404 /404.html;
    
  • Apache: enable MultiViews or add a rewrite from /path to /path.html.

Prefer a plain single-page app? npm run build:spa skips pre-rendering; then configure your host to serve index.html for unknown paths (SPA fallback).

Project layout

content/          posts (Markdown) and site.js (settings, authors, topics)
public/           favicon, robots.txt, cover images
scripts/          prerender.js — renders every route, writes feed.xml and sitemap.xml
src/
  components/     Header, Footer, PostCard, Byline, TableOfContents, ReadingProgress,
                  CodeBlock, Pagination, Newsletter, ShareLinks, AuthorBox, …
  pages/          Home, Post, Category, Tag, Author, Search, About, Contact, NotFound
  lib/            posts.js (content), markdown.js, router.jsx, head.jsx (SEO tags)
  App.jsx         routes
  main.jsx        browser entry (hydrates pre-rendered pages)
  entry-server.jsx  build-time renderer
  styles.css      the whole design

Licence

MIT (LICENSE.txt), © ThemeRove. React and Vite (MIT) and marked (MIT) are installed from npm under their own licences. Cover images are original SVGs drawn for this starter and are covered by the same MIT licence.

← Back to Rove Blog — React Blog Starter