Kicking things off. #til about a few #11ty and #nunjucks incantations. A few observations as well:

  • MDN is highly involved with nunjucks?
  • Eleventy feels way behind with regard to modern tooling. esm, type-checking, that sort of thing.
  • I've immediately collided with the eleventy API. The documentation is not that easy to navigate, and lack of typing means that it's a bit more difficult to interrogate the user-facing API directly.

This all seems a bit odious. However, I'm probably not the target audience for a tool like 11ty (eleventy?). It seems like it has the same core "I'm a big loop" as CMSs I've used before.

To get the following to print, I've had to wrap the fenced block with a nunjucks raw tag.

{#
  nunjucks will render some very strange stuff if you don't do variable
  assignments properly.
#}

{# this #}
{% set hashtags = post.data.hashtagMap | getHashtags %}

{# not this #}
{% set hashtags %}{{post.data.hashtagMap | getHashtags}}{% endset %}