mode dev avec LIBREZO_WEBSITE=dev
This commit is contained in:
parent
99f4ab27e2
commit
3a37374bab
15
README.md
15
README.md
@ -1,13 +1,20 @@
|
|||||||
Proposition de design pour Librezo.
|
# Nouveau site web de Librezo
|
||||||
|
|
||||||
[voir le rendu](http://librezo.txmn.tk)
|
[voir le rendu](http://librezo.txmn.tk)
|
||||||
|
|
||||||
## Build
|
## Utilisation
|
||||||
|
|
||||||
[Install Zola](https://getzola.org)
|
[Installez Zola](https://getzola.org)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
zola serve
|
# tester en local
|
||||||
|
zola serve
|
||||||
|
|
||||||
|
# compiler en démo publique
|
||||||
|
LIBREZO_WEBSITE=dev zola build
|
||||||
|
|
||||||
|
# compiler en prod
|
||||||
|
zola build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
@ -8,16 +8,18 @@
|
|||||||
{% if page.extra.leaflet or section.extra.leaflet %}<link rel="stylesheet" href="/vendor/leaflet/leaflet.css"/>{% endif %}
|
{% 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"/>
|
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
|
||||||
<meta name="viewport" content="width=device-width"/>
|
<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 %}
|
{% block head %}{% endblock head %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
{% if get_env(name="LIBREZO_WEBSITE", default="prod") == "dev" %}
|
||||||
<div id="dev-warning">
|
<div id="dev-warning">
|
||||||
<p>
|
<p>
|
||||||
Version de développement. Pour le site officiel actuel, allez sur <a href="https://librezo.fr"><b>Librezo.fr</b></a>.
|
Version de développement. Pour le site officiel actuel, allez sur <a href="https://librezo.fr"><b>Librezo.fr</b></a>.
|
||||||
</p>
|
</p>
|
||||||
<a href="#" onclick="document.getElementById('dev-warning').remove()">fermer</a>
|
<a href="#" onclick="document.getElementById('dev-warning').remove()">fermer</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<header>
|
<header>
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<picture>
|
<picture>
|
||||||
|
Loading…
Reference in New Issue
Block a user