{"id":13477970,"url":"https://github.com/11ty/eleventy-base-blog","last_synced_at":"2025-05-14T02:04:58.839Z","repository":{"id":40792508,"uuid":"117586538","full_name":"11ty/eleventy-base-blog","owner":"11ty","description":"A starter repository for a blog web site using the Eleventy static site generator.","archived":false,"fork":false,"pushed_at":"2025-04-21T21:48:50.000Z","size":887,"stargazers_count":1359,"open_issues_count":24,"forks_count":674,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-07T05:31:25.519Z","etag":null,"topics":["blog","eleventy","eleventy-sample"],"latest_commit_sha":null,"homepage":"https://demo-base-blog.11ty.dev/","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/11ty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"11ty","github":"11ty"}},"created_at":"2018-01-15T19:28:07.000Z","updated_at":"2025-05-07T01:57:16.000Z","dependencies_parsed_at":"2024-01-18T11:04:35.752Z","dependency_job_id":"fe0ab802-efd9-442c-9b47-200405f88eb2","html_url":"https://github.com/11ty/eleventy-base-blog","commit_stats":{"total_commits":396,"total_committers":36,"mean_commits":11.0,"dds":0.351010101010101,"last_synced_commit":"940e69d2bfd522654ceefb0495931049865b9b2d"},"previous_names":[],"tags_count":13,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ty%2Feleventy-base-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ty%2Feleventy-base-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ty%2Feleventy-base-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/11ty%2Feleventy-base-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/11ty","download_url":"https://codeload.github.com/11ty/eleventy-base-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052692,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","eleventy","eleventy-sample"],"created_at":"2024-07-31T16:01:50.685Z","updated_at":"2025-05-14T02:04:58.586Z","avatar_url":"https://github.com/11ty.png","language":"XSLT","funding_links":["https://opencollective.com/11ty","https://github.com/sponsors/11ty"],"categories":["Nunjucks","Starter Projects","Starters"],"sub_categories":[],"readme":"# eleventy-base-blog v9\n\nA 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)).\n\n## Getting Started\n\n* [Want a more generic/detailed getting started guide?](https://www.11ty.dev/docs/getting-started/)\n\n1. Make a directory and navigate to it:\n\n```\nmkdir my-blog-name\ncd my-blog-name\n```\n\n2. Clone this Repository\n\n```\ngit clone https://github.com/11ty/eleventy-base-blog.git .\n```\n\n_Optional:_ Review `eleventy.config.js` and `_data/metadata.js` to configure the site’s options and data.\n\n3. Install dependencies\n\n```\nnpm install\n```\n\n4. Run Eleventy\n\nGenerate a production-ready build to the `_site` folder:\n\n```\nnpx @11ty/eleventy\n```\n\nOr build and host on a local development server:\n\n```\nnpx @11ty/eleventy --serve\n```\n\nOr you can run [debug mode](https://www.11ty.dev/docs/debugging/) to see all the internals.\n\n## Features\n\n- Using [Eleventy v3](https://github.com/11ty/eleventy/releases/tag/v3.0.0) with zero-JavaScript output.\n\t- Content is exclusively pre-rendered (this is a static site).\n\t- Can easily [deploy to a subfolder without changing any content](https://www.11ty.dev/docs/plugins/html-base/)\n\t- All URLs are decoupled from the content’s location on the file system.\n\t- Configure templates via the [Eleventy Data Cascade](https://www.11ty.dev/docs/data-cascade/)\n- **Performance focused**: four-hundos Lighthouse score out of the box!\n\t- _0 Cumulative Layout Shift_\n\t- _0ms Total Blocking Time_\n- Local development live reload provided by [Eleventy Dev Server](https://www.11ty.dev/docs/dev-server/).\n- Content-driven [navigation menu](https://www.11ty.dev/docs/plugins/navigation/)\n- Fully automated [Image optimization](https://www.11ty.dev/docs/plugins/image/)\n\t- Zero-JavaScript output.\n\t- Support for modern image formats automatically (e.g. AVIF and WebP)\n\t- Processes images on-request during `--serve` for speedy local builds.\n\t- Prefers `\u003cimg\u003e` markup if possible (single image format) but switches automatically to `\u003cpicture\u003e` for multiple image formats.\n\t- Automated `\u003cpicture\u003e` syntax markup with `srcset` and optional `sizes`\n\t- Includes `width`/`height` attributes to avoid [content layout shift](https://web.dev/cls/).\n\t- Includes `loading=\"lazy\"` for native lazy loading without JavaScript.\n\t- Includes [`decoding=\"async\"`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)\n\t- Images can be co-located with blog post files.\n- Per page CSS bundles [via `eleventy-plugin-bundle`](https://github.com/11ty/eleventy-plugin-bundle).\n- Built-in [syntax highlighter](https://www.11ty.dev/docs/plugins/syntaxhighlight/) (zero-JavaScript output).\n- Draft content: use `draft: true` to mark any template as a draft. Drafts are **only** included during `--serve`/`--watch` and are excluded from full builds. This is driven by the `addPreprocessor` configuration API in `eleventy.config.js`. Schema validator will show an error if non-boolean value is set in data cascade.\n- Blog Posts\n\t- Automated next/previous links\n\t- Accessible deep links to headings\n- Generated Pages\n\t- Home, Archive, and About pages.\n\t- [Atom feed included (with easy one-line swap to use RSS or JSON](https://www.11ty.dev/docs/plugins/rss/)\n\t- `sitemap.xml`\n\t- Zero-maintenance tag pages ([View on the Demo](https://eleventy-base-blog.netlify.app/tags/))\n\t- Content not found (404) page\n\n## Demos\n\n- [Netlify](https://eleventy-base-blog.netlify.app/)\n- [Vercel](https://demo-base-blog.11ty.dev/)\n- [Cloudflare Pages](https://eleventy-base-blog-d2a.pages.dev/)\n- [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog)\n- [GitHub Pages](https://11ty.github.io/eleventy-base-blog/)\n\n## Deploy this to your own site\n\nDeploy this Eleventy site in just a few clicks on these services:\n\n- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.\n- [Deploy this to **Netlify**](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog)\n- [Deploy this to **Vercel**](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)\n- Look in `.github/workflows/gh-pages.yml.sample` for information on [Deploying to **GitHub Pages**](https://www.11ty.dev/docs/deployment/#deploy-an-eleventy-project-to-git-hub-pages).\n- [Try it out on **Stackblitz**](https://stackblitz.com/github/11ty/eleventy-base-blog)\n\n### Implementation Notes\n\n- `content/about/index.md` is an example of a content page.\n- `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/).\n- 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`.\n- 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` -\u003e `templateFormats`.\n- 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.\n- This project uses three [Eleventy Layouts](https://www.11ty.dev/docs/layouts/):\n\t- `_includes/layouts/base.njk`: the top level HTML structure\n\t- `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)\n\t- `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`)\n- `_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.\n\n#### Content Security Policy\n\nIf 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):\n\n1. In `base.njk`, remove `\u003cstyle\u003e{% getBundle \"css\" %}\u003c/style\u003e` and uncomment `\u003clink rel=\"stylesheet\" href=\"{% getBundleFileUrl \"css\" %}\"\u003e`\n2. Configure the server with the CSP directive `style-src: 'unsafe-inline'` (less secure).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F11ty%2Feleventy-base-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F11ty%2Feleventy-base-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F11ty%2Feleventy-base-blog/lists"}