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
A starter repository showing how to build a blog with the [Eleventy](https://www.11ty.dev/) site generator (using the [v3.0 release](https://github.com/11ty/eleventy/releases/tag/v3.0.0)).
Deploy this Eleventy site in just a few clicks on these services:
92
-
93
-
- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.
94
-
-[Deploy this to **Netlify**](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog)
95
-
-[Deploy this to **Vercel**](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)
96
-
- Look in `.github/workflows/gh-pages.yml.sample` for information on Deploying to **GitHub Pages**.
97
-
-[Try it out on **Stackblitz**](https://stackblitz.com/github/11ty/eleventy-base-blog)
98
-
99
-
### Implementation Notes
100
-
101
-
-`content/about/index.md` is an example of a content page.
102
-
-`content/blog/` has the blog posts but really they can live in any directory. They need only the `posts` tag to be included in the blog posts [collection](https://www.11ty.dev/docs/collections/).
103
-
- Use the `eleventyNavigation` key (via the [Eleventy Navigation plugin](https://www.11ty.dev/docs/plugins/navigation/)) in your front matter to add a template to the top level site navigation. This is in use on `content/index.njk` and `content/about/index.md`.
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
-
- 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
-
- This project uses three [Eleventy Layouts](https://www.11ty.dev/docs/layouts/):
107
-
- `_includes/layouts/base.njk`: the top level HTML structure
108
-
- `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)
109
-
- `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`)
110
-
-`_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.
111
-
112
-
#### Content Security Policy
113
-
114
-
If your site enforces a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) (as public-facing sites should), you have a few choices (pick one):
115
-
116
-
1. In `base.njk`, remove `<style>{% getBundle "css" %}</style>` and uncomment `<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">`
117
-
2. Configure the server with the CSP directive `style-src: 'unsafe-inline'` (less secure).
0 commit comments