pages, listing et aussi .social

This commit is contained in:
Thierry Fenasse 2024-03-24 13:24:33 +01:00
parent 1be9bbb472
commit 8dbb094fa9
Signed by: tfenasse
GPG Key ID: 56BF2A3A07DDEB1F
4 changed files with 31 additions and 5 deletions

View File

@ -187,6 +187,13 @@ header a.current::first-letter{
background-color: var(--deco); background-color: var(--deco);
} }
/* Si c'est du texte et pas un fa-icon,
* il faut pouvoir lire la première lettre.
*/
.social a::first-letter{
color: unset;
}
.social a:hover { .social a:hover {
color: var(--fond); color: var(--fond);
} }

View File

@ -67,11 +67,17 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
</nav> </nav>
{% if SOCIAL %}
<nav class="social"> <nav class="social">
{% for text, link, icon in SOCIAL %} {% if SOCIAL_WITH_FA %}
{% for text, link, icon in SOCIAL_WITH_FA %}
<a href="{{ link }}" title="{{ text }}"><i class="fa {{ icon }}"></i></a> <a href="{{ link }}" title="{{ text }}"><i class="fa {{ icon }}"></i></a>
{% endfor %} {% endfor %}
{% endif %}
{% if SOCIAL %}
{% for text, link in SOCIAL %}
<a href="{{ link }}" title="{{ text }}">{{ text }}</i></a>
{% endfor %}
{% endif %}
{% if CATEGORY_FEED_ATOM and category %} {% if CATEGORY_FEED_ATOM and category %}
<a href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}{% endif %}" title="Flux pour {{ category }}" target="_blank"><i class="fa fa-rss"></i></a> <a href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}{% endif %}" title="Flux pour {{ category }}" target="_blank"><i class="fa fa-rss"></i></a>
{% endif %} {% endif %}
@ -79,7 +85,6 @@
<a href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_ATOM.format(slug=tag.slug) }}{% endif %}" type="application/atom+xml" title="Flux pour {{ tag }}" target="_blank"><i class="fa fa-rss"></i></a> <a href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_ATOM.format(slug=tag.slug) }}{% endif %}" type="application/atom+xml" title="Flux pour {{ tag }}" target="_blank"><i class="fa fa-rss"></i></a>
{% endif %} {% endif %}
</nav> </nav>
{% endif %}
{% endblock %} {% endblock %}
</header> </header>

View File

@ -2,9 +2,9 @@
{% block content %} {% block content %}
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<article> <article>
<h1> <h2>
{{ article.title }} {{ article.title }}
</h1> </h2>
<p> <p>
{{ article.subtitle }}<br/> {{ article.subtitle }}<br/>
{{ article.description }} <br/> {{ article.description }} <br/>

View File

@ -8,6 +8,20 @@
{% block content %} {% block content %}
<article> <article>
{% if DISPLAY_PAGE_HEADER %}
<hgroup>
<h1>
{{ page.title }}
</h1>
<p>
{% if page.modified %}
Modifié le <time datetime="{{ page.modified.isoformat() }}">{{ page.modified|strftime('%A %d %B %Y') }}</time>
{% else %}
Publié le <time datetime="{{ page.date.isoformat() }}">{{ page.date|strftime('%A %d %B %Y') }}</time>
{% endif %}
</p>
</hgroup>
{% endif %}
{{ page.content }} {{ page.content }}
</article> </article>
{% endblock %} {% endblock %}