summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: c25a2759d5439ea570f80c81b0c42ee495070e3a (plain)
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
<!DOCTYPE html>
<html lang="pt-br">
  <head>
    {%- block cabeca %}
    <meta charset="utf-8" />
    <link rel="stylesheet" href="{{ url_for('static', filename = 'base.css') }}" />
    {%- endblock %}
    <title>{% block titulo required %}{% endblock %} — {{ organizacao }}</title>
  </head>
  <body>
    <header>
      <h1>{{ organizacao }}</h1>
      <nav aria-label="Menu de navegação">
        {%- set navegacao = [
          ('/index.html', 'Sobre'),
          ('/estatuto.html', 'Estatuto'),
          ('/regimento-interno.html', 'Regimento Interno'),
          ('/contato.html', 'Contato')
        ] %}
        <ul>{% for endereco, nome in navegacao %}
          {%- if request.path is defined and request.path == endereco %}
          <li><a aria-current="page" href="{{ endereco }}">{{ nome }}</a></li>
          {%- else %}
          <li><a href="{{ endereco }}">{{ nome }}</a></li>
          {%- endif -%}
        {% endfor -%}</ul>
      </nav>
    </header>
    <div>
      <main id="principal" aria-labelledby="titulo">
        <h2 id="titulo">{{ self.titulo() }}</h2>
        {%- block principal required %}{% endblock -%}
        {%- if self.extra() %}<section class="nao-contar">{%- block extra %}{% endblock -%}</section>{% endif -%}
      </main>
    </div>
  </body>
</html>