Repository with the source code for my personal site built with the Eleventy static site generator.
- Using Eleventy v3 with zero-JavaScript output.
- Local development live reload provided by Eleventy Dev Server.
- Content-driven navigation menu
- Fully automated Image optimization
- Zero-JavaScript output.
- Support for modern image formats automatically (e.g. AVIF and WebP)
- Processes images on-request during
--servefor speedy local builds. - Prefers
<img>markup if possible (single image format) but switches automatically to<picture>for multiple image formats. - Automated
<picture>syntax markup withsrcsetand optionalsizes - Includes
width/heightattributes to avoid content layout shift. - Includes
loading="lazy"for native lazy loading without JavaScript. - Includes
decoding="async" - Images can be co-located with blog post files.
- Per page CSS bundles via
eleventy-plugin-bundle. - Built-in syntax highlighter (zero-JavaScript output).
- Draft content: use
draft: trueto mark any template as a draft. Drafts are only included during--serve/--watchand are excluded from full builds. This is driven by theaddPreprocessorconfiguration API ineleventy.config.js. Schema validator will show an error if non-boolean value is set in data cascade. - Blog Posts
- Automated next/previous links
- Accessible deep links to headings
- Generated Pages
- Home, Archive, and About pages.
- Atom feed included (with easy one-line swap to use RSS or JSON)
sitemap.xml- Zero-maintenance tag pages (View on the Demo)
- Content not found (404) page
If your site enforces a Content Security Policy (as public-facing sites should), you have a few choices (pick one):
- In
base.njk, remove<style>{% getBundle "css" %}</style>and uncomment<link rel="stylesheet" href="{% getBundleFileUrl "css" %}"> - Configure the server with the CSP directive
style-src: 'unsafe-inline'(less secure).
This project is based on 11ty/eleventy-base-blog. Here's a non-inclusive list of changes made on top:
- Refactored codebase into single
srcdirectory. - Projects collection with icon support.
- Colophon, Uses, Contact, Now (redirect) pages.
- ESLint now covers CSS, JS, JSON, and Markdown files.
- VS Code extension recommendations.
- Favicons, site webmanifest.
- Fluid typography using
clamp(). - Bleed effects for images.
- 88x31 support via shortcode.
- Themed colors based on HSL values.
- Support for footnotes and Obsidian callouts.
- Social links in
<header>. - Styled
<table>and<blockquote>. - Refactored CSS styles to be more modular.