seo audit hn

This commit is contained in:
Tessier 2020-10-16 17:59:30 +02:00
parent 586751945f
commit db22994426
6 changed files with 13 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,7 @@
h3{ h3{
font-size: 1.5rem; font-size: 1.5rem;
} }
h5{ h5, h2{
font-family: 'universalis-bold'; font-family: 'universalis-bold';
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1; line-height: 1;

View File

@ -34,7 +34,7 @@
{% for item in posts %} {% for item in posts %}
{% set end = item.informations_fin_event|date("Ymd") %} {% set end = item.informations_fin_event|date("Ymd") %}
{% if now <= end %} {% if now <= end %}
{% include 'components/thumbnails/thumbnails.twig'%} {% include 'components/thumbnails/thumbnails.twig' with { hn : 'h2'} %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -35,7 +35,7 @@
{% for item in posts %} {% for item in posts %}
{% set end = item.informations_fin_event|date("Ymd") %} {% set end = item.informations_fin_event|date("Ymd") %}
{% if now >= end %} {% if now >= end %}
{% include 'components/thumbnails/thumbnails.twig'%} {% include 'components/thumbnails/thumbnails.twig' with { hn : 'h2'} %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -12,6 +12,12 @@
{% set class = 'col-12 col-md-6 col-lg-6' %} {% set class = 'col-12 col-md-6 col-lg-6' %}
{% endif %} #} {% endif %} #}
{% if hn == true %}
{% set hn = hn %}
{% else %}
{% set hn = 'h5' %}
{% endif %}
<article class="thumbnails col-12 col-md-6 col-lg-4 {{cat}}"> <article class="thumbnails col-12 col-md-6 col-lg-4 {{cat}}">
<a rel="noreferrer" href="{{site.url}}/{{item.post_name}}"> <a rel="noreferrer" href="{{site.url}}/{{item.post_name}}">
<figure> <figure>
@ -25,7 +31,7 @@
</div> </div>
<figcaption class="wrap_content"> <figcaption class="wrap_content">
<h5>{{title}}</h5> <{{hn}}>{{title}}</{{hn}}>
<div class="content"> <div class="content">
<div class="date"> <div class="date">
{% set start = item.informations_debut_event|date("Ydj") %} {% set start = item.informations_debut_event|date("Ydj") %}