title: How to get page title in config file in Eleventy JS?
body: <p>I need to insert the title of the page in the ALT attribute. How to get the title? The code below is located in the .eleventy.js file</p>
  <p>Right now I get the title if I pass in the props &quot;title&quot;. But how to get the header without passing the props?</p>
  <pre><code>eleventyConfig.addShortcode('image', (src, className, title) =&gt; {
  let classNameValue = (className) ? className : ' '
  let titleValue = (title) ? title : ' '
  
      let cloudinary =
        'https://res.cloudinary.com/dr24pbwrs/image/upload/q_auto,f_auto/'
      let pathimg = src.replace(
        new RegExp('https://res.cloudinary.com/.*/image/upload/', 'g'),
        ''
      )
  
      return `&lt;picture class=&quot;${classNameValue}&quot;&gt;
                              &lt;source
                                  srcset=&quot;${cloudinary}w_768/${pathimg} 768w,
                                  ${cloudinary}w_1024/${pathimg} 1024w,
                                  ${cloudinary}w_1024/${pathimg} 1240w&quot;
                                  sizes=&quot;(min-width: 320px) 768px,
                                  (min-width: 768px) 1024px,
                                  (min-width: 1024px) 1240px,
                                  100vw&quot;&gt;
                              &lt;img src=&quot;${cloudinary}${pathimg}&quot; alt=&quot;${titleValue}&quot; loading=&quot;lazy&quot; /&gt;
                          &lt;/picture&gt;`
    })
  </code></pre>