Skip to content

A minimal, opinionated template for creating a blog with Eleventy.

Notifications You must be signed in to change notification settings

tvanreenen/blog-template-11ty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Static Site Blog Template

A minimal, opinionated template for creating a blog using Eleventy as the static site generator and deploying to GitHub Page or Cloudflare Pages.

Getting Started

  1. Click "Use this template" to create a new repository
  2. Clone your new repository
  3. Create your first post in posts/post-title/index.md
  4. Test locally with npx @11ty/eleventy --serve
  5. Push to GitHub - your site will be automatically built and deployed

Project Structure

.
├── _includes/        # Layout templates
├── css/              # Custom stylesheets
├── posts/            # Blog posts (post-title/index.md)
├── .eleventy.js      # Eleventy configuration
├── .github/          # GitHub Actions workflow
└── index.html        # Homepage

Writing Posts

This configuration of 11ty is setup as a simple blog roll where each post is self-contained in its own directory (the markdown and any assests). The folder name will be the URL slug (posts/my-post/index.md -> site.com/my-post). The YAML frontmatter controls the title and any othe details you want to include in the list view.

---
title: "My First Post"
date: 2024-01-01
---

Your post content here...

Customizing

  • Include the CSS of your choice directly in the HEAD or in the css/ folder. It should implement the semantic HTML equivalent to markdown using class-less style. Simple.css is included as a starter framework. See the Simple.css customization guide for more details.
  • Customize the site structure by modifying any of the files in _includes/.
  • Explore Eleventy's many other customization options in their official documentation

Deployment


This was inspred by the more feature-rich 11ty/eleventy-base-blog, but with a minimal setup in mind.

About

A minimal, opinionated template for creating a blog with Eleventy.

Topics

Resources

Stars

Watchers

Forks