title: How can I create a variable Meta property og:image for multiple pages?
body: <p>Here's the code i'm trying to get work which should explain what I'm trying to do.</p>
  
  <pre><code>&lt;script&gt;document.write('&lt;meta property="og:image" content="' + location.pathname.replace(/\.html$/, '.jpg') + '"&gt;')&lt;/script&gt;
  </code></pre>
  
  <p>Just trying to edit meta property create an image for the og:image that has the same name of the .html file. So far no luck</p>