Is there any possibility to use "entry" from the for-loop inside the "main" block inside another block ("header" in my case)? See example below:
{% extends "main" %}
{% block header %}
{{ entry.id }}
{% endblock %}
{% block main %}
{% for entry in craft.entries.section('blogPosts').limit(5).all() %}
{% endfor %}
{% endblock %}