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" %}
{% load wagtailcore_tags navigation_tags wagtailimages_tags %}
{% block content %}
<h1>{{ page.title }}</h1>
{% if page.introduction or page.image %}
<hgroup>
<h1>{{ page.title }}</h1>
{% if page.introduction %}<p>{{ page.introduction }}</p>{% endif %}
</hgroup>
{% if page.image %}
<section>
{% if page.introduction %}<p>{{ page.introduction }}</p>{% endif %}
{% if page.image %}
{% srcset_image page.image width-{510,700,950,1200,1450} %}
{% endif %}
{% srcset_image page.image width-{510,700,950,1200,1450} %}
</section>
{% endif %}
<section class="grid blog-grid">

View file

@ -2,12 +2,13 @@
{% load wagtailcore_tags wagtailimages_tags %}
{% block body_class %}template-homepage{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
<section>
<hgroup>
<h1>{{ page.title }}</h1>
<p>{{ page.hero_text }}</p>
</hgroup>
<section>
{% srcset_image page.image width-{510,700,950,1200,1450} %}
</section>
<hr>
<section>
{{ page.body|richtext }}
</section>

View file

@ -6,10 +6,6 @@ h1, h2, h3, h4, h5, h6 {
--pico-font-weight: 600;
}
nav img {
height: 100%;
}
main img {
width: 100%;
}

View file

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

View file

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

View file

@ -24,12 +24,12 @@
{% endfor %}
</ul>
{% 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 %}
{% 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 %}
{% elif search_query %}
No results found
Aucun résultat
{% endif %}
{% endblock %}