A personal blog built with React, Vite, and React Router. Features markdown blog posts and a clean, modern interface.
- 📝 Markdown blog posts
- 🎨 Modern, responsive design
- ⚡ Fast loading with Vite
- 📱 Mobile-friendly
- 🔍 SEO optimized
- Node.js (version 18 or higher)
- npm
- Clone the repository:
git clone https://github.com/ayerajath/ayerajath.github.io.git
cd ayerajath.github.io- Install dependencies:
npm install- Start the development server:
npm run devThe application will be available at http://localhost:3000
npm run buildThis project is configured for deployment to GitHub Pages.
The project includes a GitHub Actions workflow that automatically deploys to GitHub Pages when you push to the main branch.
- Push your changes to the main branch
- The GitHub Action will automatically build and deploy to
https://ayerajath.github.io
If you prefer to deploy manually:
npm run deployThis will build the project and deploy it to the gh-pages branch.
ayerajath.github.io/
├── src/
│ ├── components/ # React components
│ ├── posts/ # Markdown blog posts
│ ├── App.js # Main app component
│ └── index.js # Entry point
├── .github/workflows/ # GitHub Actions
├── vite.config.js # Vite configuration
└── package.json # Dependencies and scripts
- Create a new markdown file in the
src/posts/directory - Use the existing posts as templates for the frontmatter format
- The post will automatically appear in the blog list
- React 18
- Vite
- React Router DOM
- React Markdown
- GitHub Pages
MIT