title: Express.js - Image only renders on one page
body: <p>I'm trying to make an image appear on multiple pages using Pug and Express.
  But I've been  running into some trouble.</p>
  
  <p>The image should be rendered on the page on the routes '/', 'data', 'update'. It is successfully rendered on the root '/', but afterwards, disappears from the Sources folder.</p>
  
  <p>In app.js I have this middleware about all my route-handlers:</p>
  
  <pre><code>app.use(express.static(path.join(__dirname, '/public')));
  </code></pre>
  
  <p>In the public folder I also have the file styles.css which renders fine on the other pages.</p>
  
  <p>I fixed it by putting</p>
  
  <pre><code>  img(src="/image.jpg") 
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>   img(src="image.jpg)
  </code></pre>
  
  <p>Anybody know why that is?</p>