<!doctype html>
<title>{% block title %}{% endblock %} - Bukkake</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css')}}">
<nav>
	<h1><a href=" {{ url_for('index') }} ">Bukkake</a></h1>
	<ul>
		{% if not current_user.is_anonymous %}
			<li><span>Hi, {{ current_user.username }}!</span>
				<li><a href="{{ url_for('blog.user', username=current_user.username) }}">Profile</a>
			<li><a href="{{url_for('auth.logout')}}" class="button" onclick="return confirm('Are you sure?');">Log Out</a>
		{% else %}
			<li><a href="{{url_for('auth.register')}}" class="button">Register</a>
			<li><a href="{{url_for('auth.login')}}" class="button">Log In</a>
		{% endif %}
		{% block nav %}{% endblock %}
	</ul>
</nav>
<section class="content">
	<header>
		{% block header %}{% endblock %}
	</header>
	{% for message in get_flashed_messages() %}
		<div class="flash">{{ message }}</div>
	{% endfor %}
	{% block content %}{% endblock %}
</section>
