Archived
1
Fork 0

Update templates

This commit is contained in:
Edgar P. Burkhart 2024-06-12 21:59:00 +02:00
parent 63aa3587da
commit 4a9746c66a
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
6 changed files with 18 additions and 17 deletions

View file

@ -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">

View file

@ -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>

View file

@ -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%;
} }

View file

@ -15,3 +15,8 @@
</ul> </ul>
</nav> </nav>
</section> </section>
<section>
<p>
<small><a href="/admin/">Accès administrateur</a></small>
</p>
</section>

View file

@ -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>

View file

@ -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 }}&amp;page={{ search_results.previous_page_number }}">Previous</a> <a href="{% url 'search' %}?query={{ search_query|urlencode }}&amp;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 }}&amp;page={{ search_results.next_page_number }}">Next</a> <a href="{% url 'search' %}?query={{ search_query|urlencode }}&amp;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 %}