This commit is contained in:
2024-12-27 22:00:28 +09:00
commit 2353324570
56 changed files with 8265 additions and 0 deletions

43
templates/base.html Normal file
View File

@ -0,0 +1,43 @@
{# templates/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 %}{{ title }}{% endblock %} - My Site</title>
{# CSS Block #}
{% block css %}
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
{% endblock %}
</head>
<body>
{# Header Block #}
{% block header %}
<header>
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
</nav>
</header>
{% endblock %}
{# Main Content Block #}
<main>
{% block content %}
{% endblock %}
</main>
{# Footer Block #}
{% block footer %}
<footer>
<p>&copy; 2024 My Site. All rights reserved.</p>
</footer>
{% endblock %}
{# JavaScript Block #}
{% block javascript %}
<script src="{{ url_for('static', path='/js/main.js') }}"></script>
{% endblock %}
</body>
</html>