12345678910111213141516171819202122232425262728293031323334353637 |
- {% import "components.html" as components %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>dlyan.net</title>
- <link rel="stylesheet" href="/static/style.css" />
- </head>
- <body>
- <div class="container">
- <header class="header">
- <a class="header__logo btn" href="/">:: dlyan.net</a>
-
- {% if logged_in %}
- <div class="header__auth">
- <form class="header__form" action="/logout" method="POST">
- <a href="/posts/new" class="btn">
- new post
- </a>
- <input class="btn" type="submit" value="log out" />
- </form>
- </div>
- {% endif %}
- </header>
- <div class="messages">
- {% if flash_error %}
- <p class="message message--error">{{ flash_error }}</p>
- {% endif %} {% if flash_success %}
- <p class="message message--success">{{ flash_success }}</p>
- {% endif %}
- </div>
- {% block content %} {% endblock %}
- </div>
- <script src="/static/script.js"></script>
- </body>
- </html>
|