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" %}
|
{% extends "base.html" %}
|
||||||
{% load wagtailcore_tags navigation_tags wagtailimages_tags %}
|
{% load wagtailcore_tags navigation_tags wagtailimages_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page.title }}</h1>
|
<hgroup>
|
||||||
{% if page.introduction or page.image %}
|
<h1>{{ page.title }}</h1>
|
||||||
|
{% if page.introduction %}<p>{{ page.introduction }}</p>{% endif %}
|
||||||
|
</hgroup>
|
||||||
|
{% if page.image %}
|
||||||
<section>
|
<section>
|
||||||
{% if page.introduction %}<p>{{ page.introduction }}</p>{% endif %}
|
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
||||||
{% if page.image %}
|
|
||||||
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
|
||||||
{% endif %}
|
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section class="grid blog-grid">
|
<section class="grid blog-grid">
|
||||||
|
|
|
@ -2,12 +2,13 @@
|
||||||
{% load wagtailcore_tags wagtailimages_tags %}
|
{% load wagtailcore_tags wagtailimages_tags %}
|
||||||
{% block body_class %}template-homepage{% endblock %}
|
{% block body_class %}template-homepage{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page.title }}</h1>
|
<hgroup>
|
||||||
<section>
|
<h1>{{ page.title }}</h1>
|
||||||
<p>{{ page.hero_text }}</p>
|
<p>{{ page.hero_text }}</p>
|
||||||
|
</hgroup>
|
||||||
|
<section>
|
||||||
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
{% srcset_image page.image width-{510,700,950,1200,1450} %}
|
||||||
</section>
|
</section>
|
||||||
<hr>
|
|
||||||
<section>
|
<section>
|
||||||
{{ page.body|richtext }}
|
{{ page.body|richtext }}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -6,10 +6,6 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
--pico-font-weight: 600;
|
--pico-font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav img {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
main img {
|
main img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,3 +15,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</section>
|
</section>
|
||||||
|
<section>
|
||||||
|
<p>
|
||||||
|
<small><a href="/admin/">Accès administrateur</a></small>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% pageurl site_root %}">
|
<a href="{% pageurl site_root %}">
|
||||||
{% srcset_image settings.base.SiteSettings.icon width-{64,128} %}
|
|
||||||
<strong>{{ site_root.title }}</strong>
|
<strong>{{ site_root.title }}</strong>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% if search_results.has_previous %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if search_results.has_next %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% elif search_query %}
|
{% elif search_query %}
|
||||||
No results found
|
Aucun résultat
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue