init
This commit is contained in:
45
templates/base.html
Normal file
45
templates/base.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{% load django_vite %}
|
||||
{% load static %}
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{% block base_title %}devpanel - {% block title %}Accueil{% endblock %}{% endblock %}</title>
|
||||
{% block base_css %}
|
||||
<link rel="stylesheet" href="{% vite_asset_url "styles/app.css" %}">
|
||||
{% block css %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<header id="main_header">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{% url "home:index" %}">Présentation</a></li>
|
||||
<li><a href="{% url "home:cv" %}">CV</a></li>
|
||||
<li><a href="{% url "home:service" %}">Services</a></li>
|
||||
<li><a href="{% url "blog:article_list" %}">Blog (WIP)</a></li>
|
||||
<li><a href="{% url "home:contact" %}">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main id="main_app">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer id="main_footer">
|
||||
</footer>
|
||||
|
||||
{% block base_js %}
|
||||
{% vite_asset "application/app.js" %}
|
||||
|
||||
{% block js %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user