A modern, responsive blog built with Eleventy and Tailwind CSS, featuring light/dark theme support.
- 📝 Markdown-based blog posts
- 🎨 Tailwind CSS for styling
- 🌓 Light/dark theme toggle with persistence
- 📱 Fully responsive design
- 🚀 Fast static site generation with Eleventy
- 🎯 SEO-friendly
- 🖼️ Blog post cards with images, author, date, and summary
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone <your-repo-url>
cd steve-kaschimer.github.io-2- Install dependencies:
npm install- Start the development server:
npm run devYour site will be available at http://localhost:8080
To build the site for production:
npm run deployThis will generate the static files in the _site directory.
- Create a new
.mdfile insrc/posts/ - Add front matter with the following fields:
---
layout: post.njk
title: Your Post Title
author: Steve Kaschimer
date: 2025-10-31
image: /images/your-image.jpg
summary: A brief summary of your post
tags: ['tag1', 'tag2']
---
Your content here...- Make sure your repository is named
<username>.github.io - Run the build command:
npm run deploy - Push the
_sitedirectory contents to thegh-pagesbranch, or configure GitHub Pages to use themainbranch with the_sitefolder
npm run deploy
cd _site
git init
git add .
git commit -m "Deploy to GitHub Pages"
git push -f [email protected]:<username>/<username>.github.io.git main:gh-pagesCreate a .github/workflows/deploy.yml file for automatic deployment on push.
├── src/
│ ├── _includes/ # Reusable components
│ ├── _layouts/ # Page layouts
│ │ ├── base.njk # Base layout with navbar and footer
│ │ └── post.njk # Blog post layout
│ ├── posts/ # Blog posts (markdown)
│ ├── styles/ # CSS files
│ ├── js/ # JavaScript files
│ ├── images/ # Images
│ ├── index.njk # Homepage
│ └── about.njk # About page
├── .eleventy.js # Eleventy configuration
├── tailwind.config.js # Tailwind configuration
└── package.json
Edit tailwind.config.js to customize the color scheme:
theme: {
extend: {
colors: {
primary: {
// Your custom colors
}
}
}
}Update the following files:
src/_layouts/base.njk- Site name and logosrc/about.njk- About page content- Contact information
MIT