nhoizey’s avatarnhoizey’s Twitter Archive—№ 114,603

  1. …in reply to @m4d_z
    @m4d_z @eleven_ty Nice demo, thanks! 🙏 I'm already using Nunjucks {% extends %} instead of Eleventy layout chaining, but I didn't know {% call %} and caller(), it can help. If I only need one parameter for the macro, could I call {% simpleImage('path') %} somehow?
    1. …in reply to @nhoizey
      @m4d_z @eleven_ty Also, my initial need was getting a collection's content in the macro (or a shortcode) without passing it in the call, how does this help? 🤔 😅