Skip to content
Snippets Groups Projects
Commit 938c7770 authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Switched to inherited templates to avoid copying header/footer

parent 6c81ad12
No related branches found
No related tags found
No related merge requests found
{% load static %}
<!doctype html>
<html lang=fr>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interludes 2021</title>
<meta name="description" content="Inscriptions et infos sur les interENS ludiques, édition 2021">
<meta name="keywords" content="Interludes ENS événement COF 2021 InterENS">
<!-- <link rel="icon" type="image/png" href="/static/img/favicon.png"/> -->
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
</head>
<body>
<header>
<div id="header_logo">
<h1><a href="/">Interludes 2021</a></h1>
</div>
<div id="head_main_infos">
<div id="location">ENS Ulm</div>
<div id="date">9-11 avril 2021</div>
</div>
</header>
<nav>
<a href="/" class="internal">Inscriptions</a>
<a href="/" class="internal">Activités</a>
<a href="/" class="internal">FAQ</a>
<a href="/" class="internal">Bouton autre</a>
</nav>
<main>
{% block "content" %}
{% endblock %}
</main>
<footer>
logos, liens...
</footer>
</body>
</html>
\ No newline at end of file
{% load static %} {% extends "base.html" %}
<!doctype html>
<html lang=fr>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interludes 2021</title> {% block "content" %}
<meta name="description" content="Inscriptions et infos sur les interENS ludiques, édition 2021"> <h2>A Title</h2>
<meta name="keywords" content="Interludes ENS événement COF 2021 InterENS"> <p>a paragraph</p>
<!-- <link rel="icon" type="image/png" href="/static/img/favicon.png"/> --> <p>another paragraph with <a href="http://www.google.com" class="external">an external link</a></p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}"> <h2>Another title</h2>
</head> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<body> {% endblock %}
<header>
<div id="header_logo">
<h1><a href="/">Interludes 2021</a></h1>
</div>
<div id="head_main_infos">
<div id="location">ENS Ulm</div>
<div id="date">9-11 avril 2021</div>
</div>
</header>
<nav>
<a href="/" class="internal">Inscriptions</a>
<a href="/" class="internal">Activités</a>
<a href="/" class="internal">FAQ</a>
<a href="/" class="internal">Bouton autre</a>
</nav>
<main>
<h2>A Title</h2>
<p>a paragraph</p>
<p>another paragraph with <a href="http://www.google.com" class="external">an external link</a></p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2>Another title</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</main>
<footer>
logos, liens...
</footer>
</body>
</html>
\ No newline at end of file
from django.shortcuts import render from django.shortcuts import render
def home(request): def home(request):
return render(request, 'home.html', {}) return render(request, 'home.html', {})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment