Only two layouts: base.njk page shell and chapter.njk chapter wrapper, with a minimal structure
eleventy-pamphlet — Eleventy Starter Template
By tepiton
An Eleventy-based starter for short literary works, using two layouts to present chapters and single-page content for novellas, single-volume fiction, or pamphlets.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Chapters are automatically recognized from the content/chapters/ directory, order field controls sequence, filenames determine URLs
Single-page works can delete the chapters directory, with index.md serving directly as the entire work
The content/ directory is portable to the companion eleventy-chapbook and eleventy-folio, changing presentation without altering content
css/ provides two stylesheets, style.css and utilitarian.css, switched via the stylesheet field in metadata.js
Includes a GitHub Pages deployment workflow that automatically builds and deploys when pushing to the main branch
Template Details
eleventy-pamphlet is an Eleventy starter for short literary works, suited to limited-length, structurally simple publishing forms such as novellas, single-volume fiction, and pamphlets. The template uses a minimal structure and provides only two layouts: base.njk serves as the site-wide page shell, while chapter.njk provides numbered headings and previous/next chapter navigation for chapter pages.
For content organization, multi-chapter works place Markdown files in content/chapters/, with chapter order controlled by the order field in front matter and URLs determined by filenames; for single-page works, simply delete the chapters directory and let index.md become the entire work. Site metadata is stored in content/_data/metadata.js, and the entire content/ directory is designed to be portable, allowing it to be copied wholesale into the companion eleventy-chapbook or eleventy-folio to change presentation without altering content.
For styling, css/ includes two stylesheets that share a common selector contract: the default style.css uses literary typography, while utilitarian.css uses a Helvetica font stack and a wider page. Switching is done by setting the stylesheet field in metadata.js; the default stylesheet loads Adobe Fonts Typekit fonts, whereas utilitarian skips that loading. Fonts, colors, link colors, and similar settings are modified directly in css/style.css.
The template provides four npm scripts: start, build, clean, and debug, and includes a GitHub Pages deployment workflow that automatically builds and deploys when pushing to the main branch; a custom domain requires no additional path prefix configuration.
Limitations: the template includes only two layouts and does not provide extended features such as search, paginated lists, or comments; chapter ordering relies on the order field, falling back to 999 and then filename sorting when missing. Third-party assets used in the demo, such as Adobe Fonts and images, must be checked separately under their respective licenses.
Is it right for your project?
Use Cases
- Publishing a novella or single-volume novel that needs chapter-order organization and previous/next chapter navigation
- Creating a shorter single-page literary work, such as a pamphlet, short story, or preface-style page
- Changing the site appearance by switching to a companion template while keeping the same content
- Building a static site for literary works with an author introduction page and a 404 page
- Hosting and automatically deploying a literary works site using GitHub Pages
Suitable For
- Short-form literary authors who need a minimal structure and care only about body typography
- Writers who want content and presentation separated for easy migration to other templates
- Users who accept manually editing CSS and metadata.js to adjust the site appearance
- Personal projects deployed as static sites using GitHub Pages
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install, then npm run start; the development server is at localhost:8086
- 2
Site title, author, URL, language, description, and similar information are modified in content/_data/metadata.js
- 3
For multi-chapter works, add Markdown files in content/chapters/ with title and order; for single-page works, delete that directory
- 4
The default style uses Adobe Fonts Typekit fonts; replacing fonts requires modifying the link and CSS variables in _includes/layouts/base.njk
- 5
Pushing to the main branch triggers .github/workflows/pages.yml to automatically build and deploy to GitHub Pages
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version under the MIT license in the public repository; the free scope is the code of that version and does not mean external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of that version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- The default style relies on Adobe Fonts (Typekit) fonts p22-stickley-pro-text and neue-kabel, requiring the Adobe Fonts service and a corresponding kit; these fonts are third-party licensed assets and are not granted along with the MIT code license, so their licensing must be confirmed independently before commercial use or replacement.
- Only the default stylesheet loads Typekit web fonts; switching to the utilitarian stylesheet skips that loading. If Adobe Fonts cannot be used, switch to other fonts or choose the utilitarian style.
- Demo images, fonts, icons, and other third-party assets must be checked under their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
This template uses `p22-stickley-pro-text` and `neue-kabel` from Adobe Fonts. The kit IDs are baked into `_includes/layouts/base.njk`.
Original README
https://github.com/tepiton/eleventy-pamphlet/blob/main/LICENSEhttps://github.com/tepiton/eleventy-pamphlet/blob/main/README.mdThe Typekit webfont load is tied to the switch: the default stylesheet loads it, `utilitarian` skips it.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-01. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 80 / 100
- Technologies
- Eleventy
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-09-27
- Screenshot last checked
- 2026-10-01
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Eleventy as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 71daa760ab31503ad6079dabdc1286b07cbb2cd8517eb6d95ec39d2d2a755e52
2026-10-01T14:33:10.475Z
Source file / repository# eleventy-pamphlet
An Eleventy v3 starter for short literary works: novellas, single-volume fiction, pamphlets. Minimal structure with two layouts.
Part of a family of interoperable templates:
- **eleventy-pamphlet** (this) - minimal, single layout
- **eleventy-chapbook** - separate layouts, feature-rich
- **eleventy-folio** - polished, with extras
The `content/` directory is portable across all three. Swap templates to change the presentation without touching your content.
## Quick start
```
git clone <this-repo> my-project
cd my-project
npm install
npm run start
```
Then open `http://localhost:8086`.
## Customization
### Site metadata
Edit `content/_data/metadata.js`:
```js
export default {
title: "My Literary Work",
url: "https://example.com/",
language: "en",
description: "A description of this literary work",
author: {
name: "Your Name",
email: "[email protected]",
url: "https://example.com/"
},
image: "/img/cover.png",
twitter: "@yourhandle"
}
```
Note: `metadata.js` lives inside `content/_data/` so the entire `content/` directory is self-contained and portable.
### Single-page vs multi-chapter
**Multi-chapter works:** Add files to `content/chapters/`. Each needs front matter:
```yaml
---
title: Chapter One
order: 1
---
```
- `order` controls chapter sequence
- Filename determines the URL: `chapter-1.md` → `/chapters/chapter-1/`
- Chapters are detected automatically by location - no tag or flag needed
- Chapter pages get a numbered header and prev/next navigation
**Chapter sorting:** Chapters are sorted by `order` property (ascending, fallback to 999 if missing), then by filename alphabetically for determinism.
**Single-page works:** Delete the `content/chapters/` directory entirely. Your `index.md` becomes the whole work. It inherits the base layout with no chapter navigation.
### Home page
Edit `content/index.md`. Put your title page, foreword, or opening here.
### About page
Edit `content/about.md`.
### Fonts, colors, and styles
Fonts and colors are set directly in `css/style.css`. The main values to change:
```css
body {
background-color: #fffff8; /* page background */
color: #111; /* body text */
font-family: Palatino, Georgia, serif; /* body font */
}
h1, h2, h3 {
font-family: 'Gill Sans', 'Helvetica Neue', sans-serif; /* heading font */
}
a {
color: #555; /* link color */
}
```
**Adobe Fonts (Typekit):** This template uses `p22-stickley-pro-text` and `neue-kabel` from Adobe Fonts. The kit IDs are baked into `_includes/layouts/base.njk`. To use different fonts, replace the Typekit `<link>` tags and update the CSS variables.
**Other web fonts:** Add a `<link>` to your font provider in `_includes/layouts/base.njk` and update the `--font-body` and `--font-heading` variables in `style.css`.
### Stylesheet themes
Two stylesheets ship in `css/`, on the same selector contract:
| Stylesheet | Look |
|:-----------|:-----|
| `style.css` (default) | Literary: Stickley/Kabel webfonts, narrow 48ch column, centered headings |
| `utilitarian.css` | Plain Helvetica stack, wide page with a narrow prose measure, left-aligned, styled tables |
Switch by setting one key in `content/_data/metadata.js` (a content edit — no layout changes):
```js
stylesheet: "utilitarian",
```
The Typekit webfont load is tied to the switch: the default stylesheet loads it, `utilitarian` skips it. Any other value loads `/css/<value>.css`, so a site can ship its own stylesheet file and select it the same way.
### Typography classes
- `.drop` — drop cap on first letter, small caps on first line
- `.first-line` — small caps on first line only
```html
<p class="drop">This paragraph has a drop cap.</p>
```
## Project structure
```
content/
_data/
metadata.js # Title, author, URL, social info
chapters/
chapter-1.md
chapter-2.md
...
content.11tydata.js # Default layout for all content
index.md # Home / title page
about.md # About the author
404.md # Not found page
css/
style.css # All styles
_includes/
layouts/
base.njk # Shell for all pages
chapter.njk # Chapter wrapper with prev/next
```
The `content/` directory is designed to be portable. Copy it to eleventy-chapbook or eleventy-folio to get a different presentation with the same content.
## npm scripts
| Command | Description |
|:--------|:------------|
| `npm run start` | Dev server at `localhost:8086` with live reload |
| `npm run build` | Production build to `_site/` |
| `npm run clean` | Remove `_site/` |
| `npm run debug` | Build with full debug output |
## Deploy
The included `.github/workflows/pages.yml` builds and deploys to GitHub Pages on push to `main`. No configuration needed for custom domains — the workflow detects the repo name and sets the path prefix automatically.
Explore similar templates
Compare previews and descriptions within the same stack and category.

eleventy-base-blog
The officially maintained Eleventy blog starter template, MIT licensed, includes posts, tag pages, archives, an about page, a 404 page, an Atom feed, and sitemap.xml, with per-page CSS bundling, syntax highlighting, and image optimization.
Eleventy · Blog

eleventy-garden
An Eleventy-based digital garden starter template for building a personal knowledge site organized through hyperlinks. It supports Roam-style double-bracket links, backlink display, and hover cards for backlinks.
Eleventy · Starter

eleventastic
Eleventastic is an Eleventy starter kit by Max Böck, used as the base for new 11ty projects. It integrates Sass, Webpack, SVG icon sprites, critical CSS, and HTML minification into the 11ty build without external steps.
Eleventy · Starter

neat-starter
An Eleventy-based static site starter template integrating Netlify CMS, Alpine.js, and Tailwind CSS. It provides a ready-to-run example site, a one-click Netlify deploy button, and an MIT-licensed codebase.
Eleventy · Starter

Eleventy-Starter-Boilerplate
An Eleventy-based blog starter template with Tailwind CSS, Webpack, PostCSS, ESLint, and Prettier, optional Netlify CMS, and built-in SEO metadata, sitemap, and 404 page.
Eleventy · Blog

eleventy-plus-vite
A static site starter combining Eleventy and Vite, with a live-reloading development server, Vite-based production post-processing, a PostCSS pipeline with Autoprefixer and cssnano, critical CSS inlining and asynchronous CSS loading, a web font loading strategy example, fluid typography, basic dark mode, an…
Eleventy · Starter
