slovocast/app/templates/layouts/skeleton.twig

47 lines
1.3 KiB
Twig
Raw Normal View History

2024-05-16 02:03:49 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block page_title %}{% endblock %}{{ site_name }}</title>
2024-07-18 01:32:25 +00:00
{% block meta_tags %}
<meta name="description" value="{{ site_description }}">
<meta name="keywords" value="{{ page_tags }}">
{% endblock %}
2024-11-07 02:50:14 +00:00
<link rel="stylesheet" href="static/main.css">
{% block head_js %}{% endblock %}
2024-05-16 02:03:49 +00:00
</head>
<body>
<div class="container">
<header>
2024-11-07 03:45:03 +00:00
<h1><a href="/home">Slovocast</a></h1>
2024-05-16 02:27:06 +00:00
{% block header %}{% endblock %}
2024-05-16 02:03:49 +00:00
</header>
2024-11-07 02:50:14 +00:00
<nav>
<ul>
{% if session.get('user').authenticated %}
2024-11-07 02:50:14 +00:00
<li><a href="/dashboard">Dashboard</a></li>
<li><a href="/logout">Logout</a></li>
2024-11-07 02:50:14 +00:00
{% else %}
<li><a href="/login">Login</a></li>
<li><a href="/register">Register</a></li>
2024-11-07 02:50:14 +00:00
{% endif %}
</ul>
</nav>
2024-05-16 02:03:49 +00:00
<main>
{% include 'layouts/components/flash.twig' %}
2024-05-16 02:27:06 +00:00
{% block content %}{% endblock %}
2024-05-16 02:03:49 +00:00
</main>
<footer>
2024-11-07 03:21:41 +00:00
{% block footer %}
&copy; 2024, Slovocast
{% endblock %}
2024-05-16 02:03:49 +00:00
</footer>
</div>
{% block body_js %}{% endblock %}
2024-05-16 02:03:49 +00:00
</body>
</html>