Note from 21 June 2022

TIL in #Eleventy inputPath gives the path to the source content, not to the template generating the page, when we use pagination… Where can I guet the template path? 🤔

  1. Some things I wish people mentioned when writing about #Eleventy usage, moreover concerning assets bundling (Sass, JavaScript, etc.):

    • Does it run only once per asset, or once per template where the asset is used?
    • Does it run before or after HTML is generated?
    • Does it manage hashes for cache busting?

    This is really important for sites with many contents/pages, build speed, and site performance.