Update templates
This commit is contained in:
parent
63aa3587da
commit
4a9746c66a
6 changed files with 18 additions and 17 deletions
|
@ -1,13 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
{% load wagtailcore_tags navigation_tags wagtailimages_tags %}
|
||||
{% block content %}
|
||||
<hgroup>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page.introduction or page.image %}
|
||||
<section>
|
||||
{% if page.introduction %}<p>{{ page.introduction }}</p>{% endif %}
|
||||
</hgroup>
|
||||
{% if page.image %}
|
||||
<section>
|
||||
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endif %}
|
||||
<section class="grid blog-grid">
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
{% load wagtailcore_tags wagtailimages_tags %}
|
||||
{% block body_class %}template-homepage{% endblock %}
|
||||
{% block content %}
|
||||
<hgroup>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<section>
|
||||
<p>{{ page.hero_text }}</p>
|
||||
</hgroup>
|
||||
<section>
|
||||
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
||||
</section>
|
||||
<hr>
|
||||
<section>
|
||||
{{ page.body|richtext }}
|
||||
</section>
|
||||
|
|
|
@ -6,10 +6,6 @@ h1, h2, h3, h4, h5, h6 {
|
|||
--pico-font-weight: 600;
|
||||
}
|
||||
|
||||
nav img {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
main img {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -15,3 +15,8 @@
|
|||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
<section>
|
||||
<p>
|
||||
<small><a href="/admin/">Accès administrateur</a></small>
|
||||
</p>
|
||||
</section>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<ul>
|
||||
<li>
|
||||
<a href="{% pageurl site_root %}">
|
||||
{% srcset_image settings.base.SiteSettings.icon width-{64,128} %}
|
||||
<strong>{{ site_root.title }}</strong>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% if search_results.has_previous %}
|
||||
<a href="{% url 'search' %}?query={{ search_query|urlencode }}&page={{ search_results.previous_page_number }}">Previous</a>
|
||||
<a href="{% url 'search' %}?query={{ search_query|urlencode }}&page={{ search_results.previous_page_number }}">Précédent</a>
|
||||
{% endif %}
|
||||
{% if search_results.has_next %}
|
||||
<a href="{% url 'search' %}?query={{ search_query|urlencode }}&page={{ search_results.next_page_number }}">Next</a>
|
||||
<a href="{% url 'search' %}?query={{ search_query|urlencode }}&page={{ search_results.next_page_number }}">Suivant</a>
|
||||
{% endif %}
|
||||
{% elif search_query %}
|
||||
No results found
|
||||
Aucun résultat
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue