Opinionated collection of PHP development tools, at your service
npm install
npm run serve
Or in debug mode:
DEBUG=* npx @11ty/eleventy
about/index.md
shows how to add a content page.packages/
has the package descriptions but really they can live in any directory. They need only thepackage
tag to be added to this collection.- The
css
,js
,fonts
andimg
directories in the input directory will be copied to the output folder (viaaddPassthroughCopy()
in the.eleventy.js
file). Thefavicons
directory will be copied to the root of the output folder. - The packages 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
. - This example uses following layouts:
_includes/layouts/base.njk
: the top level HTML structure
_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.