I've read the docs but I didn't seem to find a proper explanation about them. What do the block tags do? What are they for?
For example: in the docs it says that a theme's default.md should look something like this:
{% extends 'partials/base.html.twig' %}
{% block content %}
{{ page.content }}
{% endblock %}
So what does {% block content %} do here, exactly? Couldn't I just use the {{ page.content }} without the block tags?
Another example. In the Agency theme there's this:
{% block body %}
<div class="container">
</div>
{% block content %},{% endblock %}
{% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
Again, are both the {% block body %} and {% block footer %}really necessary here? Wouldn't it work exactly the same without them?
I feel like an idiot for not understanding this. It seems simple enough but I just don't get it... Apparently they're somehow related to the connections between base files and the partials, I guess? I'd appreciate a quick explanation about the logic.