This repository has been archived on 2026-03-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blog-slim.old/views/layout.twig
2026-03-09 17:52:51 +01:00

79 lines
1.6 KiB
Twig
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Mon Blog{% endblock %}</title>
{#
<link rel="stylesheet" href="/css/main.css"> #}
<style>
body {
font-family: Arial, sans-serif;
margin: 2rem;
}
.post {
border-bottom: 1px solid #ccc;
padding: 1rem 0;
}
.admin-actions a,
.admin-actions form {
margin-right: .5rem;
}
.btn {
padding: 0.5rem 1rem;
border-radius: 4px;
text-decoration: none;
display: inline-block;
}
.btn-primary {
background: #007bff;
color: white;
border: none;
cursor: pointer;
}
.btn-secondary {
background: #6c757d;
color: white;
border: none;
cursor: pointer;
}
.btn-danger {
background: #dc3545;
color: white;
border: none;
cursor: pointer;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
</style>
</head>
<body>
{# Header commun #}
{% include 'partials/_header.twig' with {'session': _SESSION} %}
{# Zone principale chaque page injecte son contenu #}
<main>
{% block content %}{% endblock %}
</main>
{# Footer commun #}
{% include 'partials/_footer.twig' %}
{# Scripts globaux #}
{#
<script src="/js/app.js"></script> #}
{% block scripts %}{% endblock %}
</body>
</html>