slovocast/app/templates/layouts/skeleton.twig

47 lines
1.3 KiB
Twig

<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block page_title %}{% endblock %}{{ site_name }}</title>
{% block meta_tags %}
<meta name="description" value="{{ site_description }}">
<meta name="keywords" value="{{ page_tags }}">
{% endblock %}
<link rel="stylesheet" href="static/main.css">
{% block head_js %}{% endblock %}
</head>
<body>
<div class="container">
<header>
<h1><a href="/home">Slovocast</a></h1>
{% block header %}{% endblock %}
</header>
<nav>
<ul>
{% if session.get('user').authenticated %}
<li><a href="/dashboard">Dashboard</a></li>
<li><a href="/logout">Logout</a></li>
{% else %}
<li><a href="/login">Login</a></li>
<li><a href="/register">Register</a></li>
{% endif %}
</ul>
</nav>
<main>
{% include 'layouts/components/flash.twig' %}
{% block content %}{% endblock %}
</main>
<footer>
{% block footer %}
&copy; 2024, Slovocast
{% endblock %}
</footer>
</div>
{% block body_js %}{% endblock %}
</body>
</html>