Pictures from within the header area of a MD-Document

Hey guys ! I wondered lately how to pull in a picture, whose path is given in the header. Thanks!

As markdown is processed before twig, you won’t be able to inject a page header variable with twig into a markdown image tag.

However, you could just put a full path to the image and use a regular HTML image tag with the URL set from the page header:

image_url: /some/path/to/image.jpg
   twig: true

And then this in the content or in a twig template:

<img src="{{ page.header.image_url }}" />