diff options
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..c25a275 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,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> |
