I want to print the default image of a node field into the page.html.twig template file in Drupal 8. On doing my research the easiest approach I could find was
{% if node.field_image.entity %}
<img src="{{ file_url(node.field_image.entity.uri.value) }}"
alt="{{ node.field_image.alt }}"
{% if node.field_image.title %}
title="{{ node.field_image.title }}"
{% endif %}
/>
{% endif %}
This works if I load an image in the field but not otherwise with the default image of the image field. I want to use the above code to print the default image that I pick for this image field. Currently the above method gives <img src="http://example.com/" alt="">
for the default image
How can I access the uri value of the default image in the src of the image tag above. Is there any other way to print the default image of a node in the page.htm.twig preferably from within the template layer as I don't have any experience with preprocess functions etc.? My objective is to have a static image which is the same throughout the content type.