I am a movie-loving, bike-riding, full-stack web developer from the UK. Here you can read blog posts about web development, view my best photos find interesting links and moreโฆ
After organising Eleventy filters, shortcodes etc I had an idea to tidy the code even more and make it dynamic. I wanted to automatically import any new functions that were added, including new when using files.
I work a lot with the Laravel framework, which scaffolds much of your initial setup and has conventions for where code should be stored. Starting a brand new Eleventy project from scratch doesn't give you this boilerplate and means you have to make decisions about where everything lives.
When working with dates in JavaScript, you probably reach for a library to help you parse, manipulate and display the values. For a recent Eleventy project, I used Luxon โ the successor to the popular JavaScript date/time library Moment.js.
I recently took an existing codebase and ported it over to Eleventy. The main purpose was to recreate the website with existing markdown files and CSS. Creating the collections and templates was the bulk of the work, but I also needed the CSS to work.
For a small Eleventy-based project, I wanted to output an example.json file โ stored in the data folder โ in a Nunjucks template. If you simply output the variable example, you'll see the unhelpful [object Object] text.
Some content below may have been published before the release of Eleventy v3.0.0 (October 1,
2024). Information may have changed in newer versions. Current stable release: 3.12
Some content below may have been published before the release of Eleventy v2.0.0 (Feb 8, 2023).
Information may have changed in newer versions. Current stable release: 3.12.
Some content below may have been published before the release of Eleventy v1.0.0 (Jan 8, 2022).
Information may have changed in newer versions. Current stable release: 3.12.
All of the content below was published before the release of Eleventy v1.0.0 (Jan 8, 2022).
Information may have changed in newer versions. Current stable release: 3.12.