Skip to content

bdariusb/blog-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Example

A React blog with a main page, blog listing, and individual post pages. Optimized for SEO and GEO (geographic/locale).

Run locally (Windows)

npm install
npm run dev

Open http://localhost:5173.

Build

npm run build
npm run preview

Features

  • Main page – Hero and link to blog
  • Blog – List of articles with titles, dates, and reading time
  • Post pages – Full article view at /blog/:slug
  • Navigation – Header with Home and Blog links

SEO & GEO

  • Per-page meta: Unique <title> and <meta name="description"> per route
  • Open Graph: og:title, og:description, og:type, og:locale, og:url; article pages include article:published_time, article:modified_time, article:author
  • Canonical URLs: Set per page to avoid duplicate content
  • JSON-LD: Schema.org WebSite, Blog, and BlogPosting for rich results
  • Semantic HTML: <header>, <main>, <nav>, <article>, <footer>, itemScope / itemProp on posts
  • Locale: lang="en" on <html>; article-level locale in meta and JSON-LD
  • Sitemap: public/sitemap.xml (replace https://example.com with your domain)
  • Robots: public/robots.txt allowing crawlers and pointing to sitemap

Replace https://example.com in public/sitemap.xml and public/robots.txt with your real site URL when deploying.

About

blog-example

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors