everything ready !
This commit is contained in:
parent
d1a2e411df
commit
0f1820d783
7 changed files with 44 additions and 1 deletions
16
templates/base.html
Normal file
16
templates/base.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>{% block title %}Mon Site{% endblock %}</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include "partials/header.html" %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
8
templates/index.html
Normal file
8
templates/index.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Accueil{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Bonjour</h1>
|
||||
<p>Bienvenue sur mon site.</p>
|
||||
{% endblock %}
|
||||
6
templates/partials/header.html
Normal file
6
templates/partials/header.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<header>
|
||||
<nav>
|
||||
<a href="/">Accueil</a>
|
||||
<a href="/blog">Blog</a>
|
||||
</nav>
|
||||
</header>
|
||||
Loading…
Add table
Add a link
Reference in a new issue