Arduino HomeDing Blog Archive

Thoughs and records on IoT, Web Sites and Microprocessors.

Eleventy for Blog

Eleventy with red ballon.

I have used several site generators and web sites for project documentation during the past years and found a solution for my blogging activities based on the static site generator eleventy.

In contrast to my previous blog engine (blogger) the static site generators allow hosting on various web server platforms and with some effort can be hosted on my own web site that also has other content and applications.

The Plan

The Blog web site features in short

Prerequisites

Node.js >= version 18 must be installed. You do not need to know Node.js or JavaScript. You simply need the SDK installed to provide you with npm to setup the project. You can get the Node SDK for your system here: https://nodejs.org/en/

You should however have some knowledge of HTML, CSS, and JavaScript. You do not need to be an expert, just comfortable using them. In terms of HTML and CSS, Eleventy has zero impact on what you use and how you write your templates. It doesn’t care. In terms of JavaScript, the same applies to what you build, but if you know a bit of JavaScript, Eleventy will be easier to configure and extend. If you need help with that, check MDN Web Docs or search for further articles on eleventy. - There are plenty.

A Git client if you want to start with a clone of a repository but you can also download the zip right from the repository. I personally use Visual Studio Code for editing and executing the npm task. Also debugging of the .eleventy.js file is possible.

Eleventy is incredibly simple to use. If you like to read more about it have a look at the documentation: https://www.11ty.dev/docs/

Setup the eleventy-base-blog

There are some starter projects available on https://www.11ty.dev/docs/starter/ where you can find the eleventy-base-blog.

Sourcecode and instructions to setup can be found in github.com/11ty/eleventy-base-blog

Further adaptions required

** Eleventy creates a folder and a index.html file instead of a filename with a good naming. This can be changed by configuration and some filtering.

See also

Tags

#eleventy