mirror of
https://git.librezo.fr/Librezo/website.git
synced 2025-09-05 20:32:54 +02:00
mode dev avec LIBREZO_WEBSITE=dev
This commit is contained in:
@ -8,16 +8,18 @@
|
||||
{% if page.extra.leaflet or section.extra.leaflet %}<link rel="stylesheet" href="/vendor/leaflet/leaflet.css"/>{% endif %}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<meta name="robots" content="noindex,nofollow"/><!-- TODO remove this for production -->
|
||||
{% if get_env(name="LIBREZO_WEBSITE", default="prod") == "dev" %}<meta name="robots" content="noindex,nofollow"/>{% endif %}
|
||||
{% block head %}{% endblock head %}
|
||||
</head>
|
||||
<body>
|
||||
{% if get_env(name="LIBREZO_WEBSITE", default="prod") == "dev" %}
|
||||
<div id="dev-warning">
|
||||
<p>
|
||||
Version de développement. Pour le site officiel actuel, allez sur <a href="https://librezo.fr"><b>Librezo.fr</b></a>.
|
||||
</p>
|
||||
<a href="#" onclick="document.getElementById('dev-warning').remove()">fermer</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<header>
|
||||
<a href="/">
|
||||
<picture>
|
||||
|
Reference in New Issue
Block a user