Echo Writes Code

_base.tera.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>

<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>{% block title %}{% endblock %} | {{ site.title }}</title>
    <link rel="stylesheet" href="/static/stylesheets/theme.css">
  </head>
  <body>
    <header>
      <div>
        <a href="/">{{ site.title }}</a>
      </div>
    </header>
    <main>
      <article>

{% for message in messages %}
{% if message.level == "error" %}
{% set toast_class = "error" %}
{% elif message.level == "warning" %}
{% set toast_class = "warning" %}
{% else %}
{% set toast_class = "message" %}
{% endif %}
<p class="toast toast-{{ toast_class }}">{{ message.content }}</p>
{% else %}
{% endfor %}

        {% block content %}{% endblock %}
      </article>
    </main>
    <footer>
      <small>Powered by Limetree CMS v{{ site.version }}</small>
    </footer>
  </body>
</html>