{"id":21952567,"url":"https://github.com/donglua/eleventy-base-blog","last_synced_at":"2026-05-15T20:31:46.554Z","repository":{"id":164982995,"uuid":"619503048","full_name":"donglua/eleventy-base-blog","owner":"donglua","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-27T15:54:51.000Z","size":413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T04:43:06.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nunjucks","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/donglua.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}},"created_at":"2023-03-27T09:14:56.000Z","updated_at":"2023-03-27T09:16:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f3c11c1-01f6-4e52-9f31-52611e9571fa","html_url":"https://github.com/donglua/eleventy-base-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/donglua/eleventy-base-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donglua%2Feleventy-base-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donglua%2Feleventy-base-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donglua%2Feleventy-base-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donglua%2Feleventy-base-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donglua","download_url":"https://codeload.github.com/donglua/eleventy-base-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donglua%2Feleventy-base-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-29T06:26:35.658Z","updated_at":"2026-05-15T20:31:46.536Z","avatar_url":"https://github.com/donglua.png","language":"Nunjucks","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eleventy-base-blog v8\n\nA starter repository showing how to build a blog with the [Eleventy](https://www.11ty.dev/) site generator (using the [v2.0 release](https://www.11ty.dev/blog/eleventy-v2/)).\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/802669dd-d5f8-4d49-963d-6d57b257c2a2/deploy-status)](https://app.netlify.com/sites/eleventy-base-blog/deploys)\n\n## Getting Started\n\n1. Clone this Repository\n\n```\ngit clone https://github.com/11ty/eleventy-base-blog.git my-blog-name\n```\n\n2. Navigate to the directory\n\n```\ncd my-blog-name\n```\n\n3. Have a look at `eleventy.config.js` to see if you want to configure any Eleventy options differently.\n4. Install dependencies\n\n```\nnpm install\n```\n\n5. Edit `_data/metadata.js` to change the site data.\n6. Run Eleventy\n\nGenerate a production-ready build:\n\n```\nnpx @11ty/eleventy\n```\n\nOr build and host locally 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 v2.0](https://www.11ty.dev/blog/eleventy-v2/) 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- [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).\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- [Image optimization](https://www.11ty.dev/docs/plugins/image/) via the `{% image %}` shortcode.\n\t- Zero-JavaScript output.\n\t- Support for modern image formats automatically (e.g. AVIF and WebP)\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\t- View the [Image plugin source code](https://github.com/11ty/eleventy-base-blog/blob/main/eleventy.config.images.js)\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- Blog Posts\n\t- 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).\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- [Feeds for Atom and 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.com/)\n- [GitHub Pages](https://11ty.github.io/eleventy-base-blog/)\n- [Remix on Glitch](https://glitch.com/~11ty-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- [Get your own Eleventy web site on Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog)\n- If you run Eleventy locally you can drag your `_site` folder to [`drop.netlify.com`](https://drop.netlify.com/) to upload it without using `git`.\n- [Get your own Eleventy web site on Vercel](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)\n- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.\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- Provides two content feeds:\n\t- `content/feed/feed.njk`\n\t- `content/feed/json.njk`\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonglua%2Feleventy-base-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonglua%2Feleventy-base-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonglua%2Feleventy-base-blog/lists"}