You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-31Lines changed: 37 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ A starter repository showing how to build a blog with the [Eleventy](https://www
6
6
7
7
## Getting Started
8
8
9
-
*[Want a more generic/detailed getting started guide?](https://www.11ty.dev/docs/getting-started/)
9
+
-[Want a more generic/detailed getting started guide?](https://www.11ty.dev/docs/getting-started/)
10
10
11
11
1. Make a directory and navigate to it:
12
12
@@ -48,38 +48,38 @@ Or you can run [debug mode](https://www.11ty.dev/docs/debugging/) to see all the
48
48
## Features
49
49
50
50
- Using [Eleventy v2.0](https://www.11ty.dev/blog/eleventy-v2/) with zero-JavaScript output.
51
-
- Content is exclusively pre-rendered (this is a static site).
52
-
- Can easily [deploy to a subfolder without changing any content](https://www.11ty.dev/docs/plugins/html-base/)
53
-
- All URLs are decoupled from the content’s location on the file system.
54
-
- Configure templates via the [Eleventy Data Cascade](https://www.11ty.dev/docs/data-cascade/)
51
+
- Content is exclusively pre-rendered (this is a static site).
52
+
- Can easily [deploy to a subfolder without changing any content](https://www.11ty.dev/docs/plugins/html-base/)
53
+
- All URLs are decoupled from the content’s location on the file system.
54
+
- Configure templates via the [Eleventy Data Cascade](https://www.11ty.dev/docs/data-cascade/)
55
55
-**Performance focused**: four-hundos Lighthouse score out of the box!
56
-
- [View the Lighthouse report for the latest build](https://eleventy-base-blog.netlify.app/reports/lighthouse/) courtesy of the [Netlify Lighthouse plugin](https://github.com/netlify/netlify-plugin-lighthouse).
57
-
- _0 Cumulative Layout Shift_
58
-
- _0ms Total Blocking Time_
56
+
-[View the Lighthouse report for the latest build](https://eleventy-base-blog.netlify.app/reports/lighthouse/) courtesy of the [Netlify Lighthouse plugin](https://github.com/netlify/netlify-plugin-lighthouse).
57
+
-_0 Cumulative Layout Shift_
58
+
-_0ms Total Blocking Time_
59
59
- Local development live reload provided by [Eleventy Dev Server](https://www.11ty.dev/docs/dev-server/).
- Draft posts: use `draft: true` to mark a blog post as a draft. Drafts are **only** included during `--serve`/`--watch` and are excluded from full builds. View the [Drafts plugin source code](https://github.com/11ty/eleventy-base-blog/blob/main/eleventy.config.drafts.js).
75
-
- Automated next/previous links
76
-
- Accessible deep links to headings
74
+
- Draft posts: use `draft: true` to mark a blog post as a draft. Drafts are **only** included during `--serve`/`--watch` and are excluded from full builds. View the [Drafts plugin source code](https://github.com/11ty/eleventy-base-blog/blob/main/eleventy.config.drafts.js).
75
+
- Automated next/previous links
76
+
- Accessible deep links to headings
77
77
- Generated Pages
78
-
- Home, Archive, and About pages.
79
-
- [Feeds for Atom and JSON](https://www.11ty.dev/docs/plugins/rss/)
80
-
- `sitemap.xml`
81
-
- Zero-maintenance tag pages ([View on the Demo](https://eleventy-base-blog.netlify.app/tags/))
82
-
- Content not found (404) page
78
+
- Home, Archive, and About pages.
79
+
-[Feeds for Atom and JSON](https://www.11ty.dev/docs/plugins/rss/)
80
+
-`sitemap.xml`
81
+
- Zero-maintenance tag pages ([View on the Demo](https://eleventy-base-blog.netlify.app/tags/))
82
+
- Content not found (404) page
83
83
84
84
## Demos
85
85
@@ -104,20 +104,26 @@ Deploy this Eleventy site in just a few clicks on these services:
104
104
- Content can be in _any template format_ (blog posts needn’t exclusively be markdown, for example). Configure your project’s supported templates in `eleventy.config.js` -> `templateFormats`.
105
105
- The `public` folder in your input directory will be copied to the output folder (via `addPassthroughCopy` in the `eleventy.config.js` file). This means `./public/css/*` will live at `./_site/css/*` after your build completes.
106
106
- Provides two content feeds:
107
-
- `content/feed/feed.njk`
108
-
- `content/feed/json.njk`
107
+
-`content/feed/feed.njk`
108
+
-`content/feed/json.njk`
109
109
- This project uses three [Eleventy Layouts](https://www.11ty.dev/docs/layouts/):
110
-
- `_includes/layouts/base.njk`: the top level HTML structure
111
-
- `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)
112
-
- `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`)
110
+
-`_includes/layouts/base.njk`: the top level HTML structure
111
+
-`_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)
112
+
-`_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`)
113
113
-`_includes/postslist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `content/index.njk` has an example of how to use it.
114
114
115
115
If your site enforces a Content Security Policy (as public-facing sites should), either, in `base.njk`, disable
0 commit comments