news-reader-php/templates/base.html.twig

34 lines
915 B
Twig
Raw Normal View History

2020-05-25 22:47:09 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}{{ app_name }}{% endblock %}</title>
2020-05-25 23:32:57 +02:00
{% block stylesheets %}
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
{% endblock %}
2020-05-25 22:47:09 +02:00
</head>
<body>
2020-05-25 23:32:57 +02:00
<header>
<h1><a href="{{ path('start') }}">{{ app_name }}</a></h1>
</header>
2020-05-26 12:56:15 +02:00
<main>
<nav>
{% for bucket in buckets.findAll %}
<a href="{{ path('bucket', {slug: bucket.slug}) }}">{{ bucket.name }}</a>
{% endfor %}
</nav>
2020-05-25 23:32:57 +02:00
2020-05-26 12:56:15 +02:00
<section>
{% block body %}{% endblock %}
</section>
</main>
2020-05-25 23:32:57 +02:00
<footer>
© by <a href="https://daniel-siepmann.de">Daniel Siepmann</a> since 2020
</footer>
2020-05-25 22:47:09 +02:00
{% block javascripts %}{% endblock %}
</body>
</html>