Convert templates to pongo2

This commit is contained in:
William Bouzourène 2024-12-22 15:17:05 +01:00
parent 266cd2f4d2
commit d61e607b8a
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
22 changed files with 311 additions and 136 deletions

38
views/layouts/main.html Normal file
View file

@ -0,0 +1,38 @@
<!doctype html>
<html lang="fr" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% set PageTitleSuffix = "Camarades | POP Vaud" %}
{% if PageTitle %}
<title>{{ PageTitle }} | {{ PageTitleSuffix }}</title>
{% else %}
<title>{{ PageTitleSuffix }}</title>
{% endif %}
<link rel="shortcut icon" href="/static/images/favicon.jpg" type="image/jpg">
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/main.css">
{% block stylesheet %}{% endblock %}
</head>
<body>
{% block header %}
{% include "partials/header.html" %}
{% endblock %}
{% block main %}
<!-- Content goes here -->
{% endblock %}
<script src="/static/jquery/jquery.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/static/feather/dist/feather.min.js"></script>
<script>
$(document).ready(function() {
feather.replace();
});
</script>
{% block javascript %}{% endblock %}
</body>
</html>

View file

@ -1,20 +0,0 @@
doctype html
html(lang="fr", data-bs-theme="dark")
head
if .PageTitle
title #{.PageTitle} - People - POP Vaud
else
title People - POP Vaud
meta(name="viewport" content="width=device-width, initial-scale=1")
link(rel="icon", href="/static/images/favicon.jpg")
link(rel="stylesheet", href="/static/bootstrap/css/bootstrap.min.css")
link(rel="stylesheet", href="/static/main.css")
body
| {{embed}}
script(src="/static/jquery/jquery.min.js")
script(src="/static/bootstrap/js/bootstrap.bundle.min.js")
script(src="/static/feather/dist/feather.min.js")
script feather.replace();
script(src="/static/events.js")