Skip to content

peeym/astro-content-hub-rtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content Hub RTL — Astro + Tailwind Knowledge Base Template

A professional content/knowledge hub template built with Astro 6 and Tailwind CSS v4. Features RTL support, dual-audience content architecture, article collections, FAQ, newsletter signup, and a beautiful sage/warm color system.

Features

  • RTL-first design — built for Hebrew, Arabic, and multilingual sites
  • Dual-audience architecture — separate content paths for professionals and the general public
  • Centralized configuration — change everything from src/data/siteData.ts
  • MDX content collections — articles, stories, and pages with typed schemas
  • Expert directory — showcase qualified professionals
  • Books & courses — curated resource pages
  • FAQ with Schema.org — accordion FAQ sections with JSON-LD markup
  • Newsletter signup — ready-to-connect email forms
  • Cookie consent — built-in banner component
  • Style guide — live component showcase page
  • SEO optimized — JSON-LD, Open Graph, Twitter Cards, sitemap
  • Responsive design — mobile-first, all breakpoints
  • Two color themes — Sage & Warm (default) or Cool Blue (switch in siteData.ts)

Quick Start

npm install
npm run dev        # Development server at localhost:4321
npm run build      # Production build to ./dist/
npm run preview    # Preview production build

Customization Guide

1. Site Configuration (src/data/siteData.ts)

This is your single source of truth. Change:

  • Company name, tagline, description
  • Contact information
  • Social media links
  • Service integrations (GA4, Search Console, etc.)
  • Navigation menus
  • Design tokens (colors, fonts, direction)
  • SEO metadata

2. Color Theme

Two presets are included. To switch from Sage to Cool Blue, follow the commented instructions in siteData.ts.

3. Content

  • Articles: Add .mdx files to src/content/articles/
  • Stories: Add .mdx files to src/content/stories/
  • Pages: Edit .astro files in src/pages/

4. RTL ↔ LTR

Change direction and lang in siteData.ts. The template uses logical CSS properties (start/end instead of left/right) so layout adapts automatically.

5. Fonts

Default fonts: Heebo (Hebrew) + Inter (English). Replace in the <head> of BaseLayout.astro and update siteData.ts.

File Structure

src/
├── components/     # Reusable Astro components
├── content/        # MDX content collections
│   ├── articles/   # Professional & public articles
│   ├── stories/    # Personal stories
│   └── pages/      # Static pages
├── data/
│   └── siteData.ts # Centralized configuration
├── layouts/
│   └── BaseLayout.astro
└── pages/          # All routes

Deployment

Works with any static hosting:

  • Vercel: npx vercel
  • Netlify: Connect repo, build command npm run build, publish dist/
  • Cloudflare Pages: Same as Netlify

Tech Stack

  • Astro 6
  • Tailwind CSS v4
  • MDX
  • TypeScript

License

See LICENSE.md


No support included. No guaranteed updates. You get the source code as-is.

About

Professional content/knowledge hub template — Astro 6 + Tailwind CSS v4 with RTL support. 22 pages, articles, FAQ, newsletter, style guide.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors