flask extends two base.html

<!-- base.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}My Website{% endblock %}</title>
</head>
<body>
    <header>
        <h1>Welcome to My Website</h1>
    </header>
    <nav>
        <ul>
            <li><a href="/">Home</a></li>
            <li><a href="/about">About</a></li>
            <li><a href="/contact">Contact</a></li>
        </ul>
    </nav>
    <main>
        {% block content %}{% endblock %}
    </main>
    <footer>
        <p>&copy; 2023 My Website. All rights reserved.</p>
    </footer>
</body>
</html>
<!-- page.html -->
{% extends "base.html" %}

{% block title %}About Us - My Website{% endblock %}

{% block content %}
    <h2>About Us</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in turpis et sem auctor ultricies.</p>
{% endblock %}
<!-- another_page.html -->
{% extends "base.html" %}

{% block title %}Contact Us - My Website{% endblock %}

{% block content %}
    <h2>Contact Us</h2>
    <p>For inquiries, please email us at <a href="mailto:[email protected]">[email protected]</a>.</p>
{% endblock %}