mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 19:32:26 +02:00
add meta to templates
This commit is contained in:
parent
7fa2310e1e
commit
36ccc7c510
2 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,9 @@ from pathlib import Path
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
|
BASE_URL = "http://127.0.0.1:8000" # to be moved to settings/dev.py
|
||||||
|
|
||||||
|
BASE_URL = os.getenv("BASE_URL")
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
# Quick-start development settings - unsuitable for production
|
||||||
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:locale" content="fr_FR" />
|
||||||
|
<meta property="og:site_name" content="La chariotte">
|
||||||
|
<meta property="og:url" content="{{ BASE_URL }}{{ request.path }}">
|
||||||
|
|
||||||
<title>{% block title %}{% endblock %} - La Chariotte</title>
|
<title>{% block title %}{% endblock %} - La Chariotte</title>
|
||||||
{% block css %}
|
{% block css %}
|
||||||
<link rel="stylesheet" href="{% static 'css/app.css' %}">
|
<link rel="stylesheet" href="{% static 'css/app.css' %}">
|
||||||
|
|
Loading…
Reference in a new issue