2024-08-01 09:07:49 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2024-08-01 10:33:45 +00:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='simple.css') }}">
|
2024-08-01 09:07:49 +00:00
|
|
|
{% if title %}
|
2024-08-04 20:14:58 +00:00
|
|
|
<title>{{ title }} - blogpage</title>
|
2024-08-01 09:07:49 +00:00
|
|
|
{% else %}
|
|
|
|
<title>Welcome to blog.</title>
|
|
|
|
{% endif %}
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-08-05 08:28:09 +00:00
|
|
|
<header>
|
|
|
|
<nav>
|
2024-08-05 16:09:51 +00:00
|
|
|
<a {% block indexcurrent %}{% endblock %} href="{{ url_for('index') }}">home</a>
|
|
|
|
<a {% block explorecurrent %}{% endblock %} href="{{ url_for('explore') }}">explore</a>
|
2024-08-01 18:10:49 +00:00
|
|
|
{% if current_user.is_anonymous %}
|
2024-08-05 16:09:51 +00:00
|
|
|
<a {% block logincurrent %}{% endblock %} href="{{ url_for('login') }}">login</a>
|
2024-08-01 18:10:49 +00:00
|
|
|
{% else %}
|
2024-08-05 16:09:51 +00:00
|
|
|
<a {% block profilecurrent %}{% endblock %} href="{{ url_for('user', username=current_user.username) }}">profile</a>
|
2024-08-01 18:10:49 +00:00
|
|
|
<a href="{{ url_for('logout') }}">logout</a>
|
|
|
|
{% endif %}
|
2024-08-01 10:33:45 +00:00
|
|
|
|
2024-08-05 08:28:09 +00:00
|
|
|
</nav>
|
|
|
|
<h1>oily.dad</h1>
|
|
|
|
<h4>destroy me</h4>
|
|
|
|
</header>
|
2024-08-01 09:07:49 +00:00
|
|
|
<hr>
|
2024-08-01 10:33:45 +00:00
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
|
|
|
<ul>
|
|
|
|
{% for message in messages %}
|
2024-08-01 18:10:49 +00:00
|
|
|
<p class="notice">{{ message }}</p>
|
2024-08-01 10:33:45 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
|
|
|
|
2024-08-01 09:07:49 +00:00
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|