{"_id":"@an11ty/template","_rev":"3-cfa4f709857094a9c23cfe00051413f2","name":"@an11ty/template","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.2":{"name":"@an11ty/template","version":"0.0.2","description":"[WIP] Default an11ty site and configuration, with all sorts of goodies.","repository":{"type":"git","url":"git://github.com/an11ty/template.git"},"main":"index.md","author":{"name":"Tobias Davis","email":"tobias@davistobias.com","url":"https://davistobias.com/"},"license":"VOL","bugs":{"url":"https://github.com/an11ty/template/issues"},"homepage":"https://github.com/an11ty/template#readme","dependencies":{"@11ty/eleventy":"^0.11.0","@11ty/eleventy-navigation":"^0.1.6","@11ty/eleventy-plugin-rss":"^1.0.9","@11ty/eleventy-plugin-syntaxhighlight":"^3.0.1","@babel/core":"^7.11.4","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","clean-css":"^4.2.3","cssesc":"^3.0.0","focus-trap":"^5.1.0","focus-visible":"^5.1.0","glob":"^7.1.6","glob-module-file":"^3.0.2","html-minifier":"^4.0.0","luxon":"^1.21.3","markdown-it":"^8.4.2","markdown-it-anchor":"^5.2.5","memory-fs":"^0.5.0","mkdirp":"^1.0.4","node-sass":"^4.14.1","svg-sprite":"^1.5.0","vinyl":"^2.2.0","webpack":"^4.44.1"},"gitHead":"f90cacff9497ae5602879d98b0557fde44b4817b","_id":"@an11ty/template@0.0.2","_nodeVersion":"12.16.1","_npmVersion":"6.14.2","dist":{"integrity":"sha512-hWIEeh6TkcUbD6EJQKF/uEVosVb61KpchAqhD0BAm2iSLSKEvQ+QuakVlln6ctrfBxU2TChJTQ5U97OcsDGRoQ==","shasum":"4517aabd7935e1d62e17d67fd434dc0ebbc55ce4","tarball":"https://registry.npmjs.org/@an11ty/template/-/template-0.0.2.tgz","fileCount":95,"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZnPkCRA9TVsSAnZWagAAXpkP/Rgk6BoxCy7IzCAyu5xl\nC0K09IIjWkHV0LEJSBnQd6lJsZkRMDa4Oo+7p2lacwOlphDNqWXdMWJgsNBg\nZfEph1Yr9tAHadpEunvXMtOcGHWlJCYzLNokAQqJ7ImrOE6y3YdzE+zmSnFp\nikCv4hzCEwH2JYoF7vap0Z4VPPKWKY9mf+PqQWzKCrZ7bjF40hn2uljPWpSw\nnpGTxah7L/tKM2rQsMHEnmmEEZ8uEDfsASFXarORxOzLtOUl1CZsmpnSUCIq\nT61ALpcWv3S1zkcWxfF1pG1m83uSt28SNUGfZKzdZMS/DuYKwlMts6Fnowsg\nzggllMB04MGKho7iaa6v4chUyREqSm1t5jvsmS0+8m1dd60tCORY7BfqA6Qo\nM3mdyisXgyuT9ynnikreLrf2EtxoeZe8o7Q44XmHUHxMwLx4CfwTLoTfffFb\n18KzB3ubn9g8zPZuuodtdP5RAW4h5zjKU40EYQGSFXMYiwHMW8vqYZMsDmuD\nzCCq25s6LI13Nj7KidfDNRzX4VKwgO7O3KXgc3gFj+YRoa64DWesF0Jc2xpo\nq+WXkG45J/obwqxxvsJrU1vsHmRwVPEITooYpf5e0CXaOnkMqDO0asgXSpU8\n7eLUUfMan8DWlOgq2lgfA4bKD1xTbpTWAypWMMwQ4xvz3SK5x2/Ht10GL32N\n9BRe\r\n=FG4N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8oFpFEbeood3OI6LUfTOC9NG/ttUvAiAXazN2oVcTUwIgYdFoKjaNBPkOZYQXNvexW+Llj4zIJ2sihiF8uCm0d44="}]},"maintainers":[{"name":"saibotsivad","email":"accounts@davistobias.com"}],"_npmUser":{"name":"saibotsivad","email":"accounts@davistobias.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template_0.0.2_1600549859708_0.47096797701050774"},"_hasShrinkwrap":false},"0.0.3":{"name":"@an11ty/template","version":"0.0.3","description":"[WIP] Default an11ty site and configuration, with all sorts of goodies.","repository":{"type":"git","url":"git://github.com/an11ty/template.git"},"main":"index.md","author":{"name":"Tobias Davis","email":"tobias@davistobias.com","url":"https://davistobias.com/"},"license":"VOL","bugs":{"url":"https://github.com/an11ty/template/issues"},"homepage":"https://github.com/an11ty/template#readme","dependencies":{"@11ty/eleventy":"^0.11.0","@11ty/eleventy-navigation":"^0.1.6","@11ty/eleventy-plugin-rss":"^1.0.9","@11ty/eleventy-plugin-syntaxhighlight":"^3.0.1","@babel/core":"^7.11.4","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","clean-css":"^4.2.3","cssesc":"^3.0.0","focus-trap":"^5.1.0","focus-visible":"^5.1.0","glob":"^7.1.6","glob-module-file":"^3.0.2","html-minifier":"^4.0.0","luxon":"^1.21.3","markdown-it":"^8.4.2","markdown-it-anchor":"^5.2.5","memory-fs":"^0.5.0","mkdirp":"^1.0.4","node-sass":"^4.14.1","svg-sprite":"^1.5.0","vinyl":"^2.2.0","webpack":"^4.44.1"},"gitHead":"f75e3e459ff7214ac5f3f857763fe20d918b237c","_id":"@an11ty/template@0.0.3","_nodeVersion":"12.16.1","_npmVersion":"6.14.2","dist":{"integrity":"sha512-Mfpstvu0Q+wT6RwAucVfks+EJ8vltw86LSgl60VzSbp9+Wl3PbXVOR8rblHnzlC/NCpUxYdAp79CRbS4fB63gg==","shasum":"c6c84661de800a1ece611c6286219576232e1793","tarball":"https://registry.npmjs.org/@an11ty/template/-/template-0.0.3.tgz","fileCount":95,"unpackedSize":94373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbjJbCRA9TVsSAnZWagAAwcwQAJYyeYxkWUEZLc7/kg2a\npjORUTgeZXUxTj3915s6AfnJGoeu2NgyOHYbv3tP7jGnV07lvANLDpL5/AVT\nQ6sZa+iLMJUeLm5Ri0el2+dtEMnRm3HEjD1HEDufhUwSi+E/Sq/9vdvuNdjb\nAJ9y8bCpxGwVzR+fTR+rzx9A5WS4BFegnbgdp9u9BQzBhdsxvbirTipYlScy\nwJpQvYZhe9g3zk572NxKjWn+6YKYepKyAypWVvnQjBl/Bh5mTYb9oAHQjL38\nrzOg4sTdKwXYrmus8bkVx/vXmuVHOleN7XORjKuMUKSf5i1mY1u/9n0Wi2ng\nskTjNDSYeZJFfPVEAVFT+oMhE8Lh/vzbeiksrEG/z9P8Sc2s0wO1zV3Pzd8k\nUbaUzW4uo0r1HmESbau0H7FcnF+VVCCV8W0fwJh+vQZMie1raSaQHh/jiKkP\nx8sxE2RvJIUWDnqKLfSSItmMTQsLt9gChveG5DAoB4rdz6jBlVbCEDOFXlat\nB3Q3q5Xgb1quz1AfC9/A34UaINxxDhZ8pIS70Q1qk7Hrxm9F7Pmw97ro3MeP\nhOz5x9F8sksNW8J70+O72G9BHvXdDCg268O6NzOv9O7QOG06x605eO3hqTCQ\nFrXOMg4BK/PUlGTFkTv+eslLrFRVNXqSFI036EgLKWbSZoa+Kyrm+4AP5n37\ni5ij\r\n=2/7a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGk4gYY2Jvh3ffw92Al3Z6VCm0BzCzpr3kc0YeEJqr+qAiAopS13591EKy4mS0E/7ta5yMB7esZZJlsOqr5C/soukQ=="}]},"maintainers":[{"name":"saibotsivad","email":"accounts@davistobias.com"}],"_npmUser":{"name":"saibotsivad","email":"accounts@davistobias.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template_0.0.3_1601057371351_0.7422682216121232"},"_hasShrinkwrap":false},"0.0.4":{"name":"@an11ty/template","version":"0.0.4","description":"[WIP] Default an11ty site and configuration, with all sorts of goodies.","repository":{"type":"git","url":"git://github.com/an11ty/template.git"},"author":{"name":"Tobias Davis","email":"tobias@davistobias.com","url":"https://davistobias.com/"},"license":"VOL","bugs":{"url":"https://github.com/an11ty/template/issues"},"homepage":"https://github.com/an11ty/template#readme","dependencies":{"@11ty/eleventy":"^0.11.0","@11ty/eleventy-navigation":"^0.1.6","@11ty/eleventy-plugin-rss":"^1.0.9","@11ty/eleventy-plugin-syntaxhighlight":"^3.0.1","@babel/core":"^7.11.4","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","clean-css":"^4.2.3","cssesc":"^3.0.0","focus-trap":"^5.1.0","focus-visible":"^5.1.0","glob":"^7.1.6","glob-module-file":"^3.0.2","html-minifier":"^4.0.0","luxon":"^1.21.3","markdown-it":"^8.4.2","markdown-it-anchor":"^5.2.5","memory-fs":"^0.5.0","mkdirp":"^1.0.4","node-sass":"^4.14.1","svg-sprite":"^1.5.0","vinyl":"^2.2.0","webpack":"^4.44.1"},"gitHead":"af5948cc8415230163befea1cbaa70632c3530c4","_id":"@an11ty/template@0.0.4","_nodeVersion":"12.16.1","_npmVersion":"6.14.2","dist":{"integrity":"sha512-LequE/E1KjWS7bBrPC4XXSbg4J1Q+lgaMeN+qO+6nm+FBQuXt2kxv2Gn0syYtnPELQC+vleo4rypc6MwXIVlxg==","shasum":"f596534145853a5be1fa30b712b22364bb3b6421","tarball":"https://registry.npmjs.org/@an11ty/template/-/template-0.0.4.tgz","fileCount":96,"unpackedSize":6580675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdAZwCRA9TVsSAnZWagAA78MP/1CO5J0Empzz3ROFq3a1\nORiH/G8TiUB2M2Nu/wn6ZVJ+vLte6BtO7juFapt93OHxoNggkSFK/DWrYgDY\nD6Pv/GwAu+3UeykR3N1c5KCv6DoS9iJ3QyUN1YO3KJ2olQ40zNk9C6eDa9RQ\n57CnykaEtFyzsBNt7AMlOrMtiDQ8gUpmMLYtEH3cavf5rjEZLiD+LHnYzARr\nKTPDrNWK71YuHKDbnf2vtunW39ZsB3lvR6Dzsts+puYfg97Z3919bH0FKxEW\nt092wUZ7CT7vPvRVbHUyGhCGchomHR7MPBZqB22DMzH/P3qhZI73i9tQTblY\nK3Emov5tG3qjoMs9NSwpkLH9Mmiv7Oqs5d36Dhhvgz/XODMHxPAs8MCgnkO/\niD1pK1PSmYLv6xsFfnDYRq4VL5KQJpn0B4S68JuuWrPvin0FswiLfFKxgadH\nc7H8dxjS6qQQ6wJ0k8DjZDL2aj3spo9Ll7APgki+IdSiSWZwSUQtTS/9fNDP\nLqJrELhQuEAmfsd2+h2aJRAir1UL9s6CpdN/tdnUfQ5MwjJiUoEKklP8YbzD\nhwwKJ0W+5qwsR0gvBu4BuIWR/eAln6ce2GZLolbi/Ezay517+S+5DVSxAqcx\nGgnFFrGN//xJb1/Pkmb6izvyico482yd71jAejXYD7KgqwBAtxHkFMJXaHcj\n4p7T\r\n=9NKw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEO9tcgl1w9E1pAMbCXk3Y8GpJmPoWRsEqZIKuFF86PoAiEAnnKBBQOlC1vWHZFVkOn+bXCDQkciObsRwjLmOOIYZpg="}]},"maintainers":[{"name":"saibotsivad","email":"accounts@davistobias.com"}],"_npmUser":{"name":"saibotsivad","email":"accounts@davistobias.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template_0.0.4_1601439343633_0.054836656188360644"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-19T21:10:59.441Z","0.0.2":"2020-09-19T21:10:59.887Z","modified":"2022-04-04T13:53:37.438Z","0.0.3":"2020-09-25T18:09:31.554Z","0.0.4":"2020-09-30T04:15:44.082Z"},"maintainers":[{"name":"saibotsivad","email":"accounts@davistobias.com"}],"description":"[WIP] Default an11ty site and configuration, with all sorts of goodies.","homepage":"https://github.com/an11ty/template#readme","repository":{"type":"git","url":"git://github.com/an11ty/template.git"},"author":{"name":"Tobias Davis","email":"tobias@davistobias.com","url":"https://davistobias.com/"},"bugs":{"url":"https://github.com/an11ty/template/issues"},"license":"VOL","readme":"# An11ty Template\n\nThis is the default template recommended by [An11ty](https://www.npmjs.com/package/an11ty).\n\nThe behaviour of `an11ty` is to overwrite template files with your files, instead of merging them. That can be a bit of a hassle if you aren't careful, so this default site has a lot of functionality packed in that you can extend it in many ways without needing to overwrite files.\n\n## Extending `.eleventy.js`\n\nInstead of rewriting the `.eleventy.js` configuration file, name your file `.an11ty.js` and it will be run like the normal 11ty configuration file, *after* the base one is run. (If you need it to run before, name it `.an11ty-before.js` instead. Or do both.)\n\nExample of adding a single filter:\n\n```js\n// .an11ty.js (in your site's folder)\nmodule.exports = function (eleventyConfig) {\n\televentyConfig.addFilter('uppercase', (string) => {\n\t\treturn string.toUpperCase();\n\t});\n};\n```\n\nIf you return a configuration object, for example to change the returned `templateFormats` list, your object will be merged with the default ones using a non-recursive `Object.assign`.\n\nThis means to add a new template format, since it's an array, you would need to return the full updated array.\n\nExample of only changing the HTML template engine:\n\n```js\n// .an11ty.js (in your site's folder)\nmodule.exports = function () {\n\treturn {\n\t\thtmlTemplateEngine: 'pug'\n\t};\n};\n```\n\n\n\n\n\n\n\n\n\n\n\n\n---\n\n## Roadmap\n\nimage resizing stuff? https://github.com/image-size/image-size\n\n\n\n---\n\nA starter repository showing how to build a blog with the [Eleventy](https://github.com/11ty/eleventy) static site generator.\n\n[![Build Status](https://travis-ci.org/11ty/eleventy-base-blog.svg?branch=master)](https://travis-ci.org/11ty/eleventy-base-blog)\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\nThese builders are amazing—try them out to get your own Eleventy site in a few clicks!\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* [Get your own Eleventy web site on Vercel](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)\n\n## Getting Started\n\n### 1. Clone this Repository\n\n```\ngit clone https://github.com/11ty/eleventy-base-blog.git my-blog-name\n```\n\n\n### 2. Navigate to the directory\n\n```\ncd my-blog-name\n```\n\nSpecifically have a look at `.eleventy.js` to see if you want to configure any Eleventy options differently.\n\n### 3. Install dependencies\n\n```\nnpm install\n```\n\n### 4. Edit _data/metadata.json\n\n### 5. Run Eleventy\n\n```\nnpx eleventy\n```\n\nOr build and host locally for local development\n```\nnpx eleventy --serve\n```\n\nOr build automatically when a template changes:\n```\nnpx eleventy --watch\n```\n\nOr in debug mode:\n```\nDEBUG=* npx eleventy\n```\n\n### Implementation Notes\n\n* `about/index.md` shows how to add a content page.\n* `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection.\n* Add the `nav` tag to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`.\n* Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`.\n\t* Because `css` and `png` are listed in `templateFormats` but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure).\n* The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`.\n* This example uses three layouts:\n  * `_includes/layouts/base.njk`: the top level HTML structure\n  * `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)\n  * `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`)\n* `_includes/postlist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it.\n\n\n\n\n## Credits\n\nHighly inspired by https://github.com/hankchizljaw/hylia\n","readmeFilename":"README.md"}