fonts, grid

This commit is contained in:
2021-03-30 16:24:18 +02:00
parent 964832e90b
commit cfe7812cba
95 changed files with 5439 additions and 2708 deletions
@@ -0,0 +1,44 @@
<div class="ressources {{ page.header.class}}">
<div class="titre_nsb">
{{ content|raw }}
</div>
{% for rapport in page.header.rapports %}
<div class="ressource">
{% if rapport.couverture and rapport.pdf %}
<a href="{{page.media[rapport.pdf].url|e }}" download >
<img src="{{page.media[rapport.couverture].url|e }}" alt="couverture du {{rapport.titre_du_rapport}}" />
</a>
{% endif %}
{% if rapport.titre_du_rapport %}
<h4>{{ rapport.titre_du_rapport }}</h4>
{% endif %}
{% if rapport.texte_de_presentation %}
<p>{{ rapport.texte_de_presentation|markdown }}</p>
{% endif %}
</div>
{% endfor %}
</div>
{# ça, ça montre le pdf sur nouvelle page avec possibilité d'imprimer ou de télécharger (page de dialogue du navigateur)
{% if rapport.couverture and rapport.pdf %}
<a href="{{page.media[rapport.pdf].url|e }}" {{rapport.titre_du_rapport}} >
<img src="{{page.media[rapport.couverture].url|e }}" alt="couverture du {{rapport.titre_du_rapport}}" />
</a>
{% endif %}
#}
{# ça, ça lance le téléchargement du pdf directement
{% if rapport.couverture and rapport.pdf %}
<a href="{{page.media[rapport.pdf].url|e }}" download >
<img src="{{page.media[rapport.couverture].url|e }}" alt="couverture du {{rapport.titre_du_rapport}}" />
</a>
{% endif %}
#}