1
0
forked from finn/site

43 lines
1.1 KiB
HTML
Raw Normal View History

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