Skip to content

Commit

Permalink
Restaure les itemprop perdus avec c29c53f (#6672)
Browse files Browse the repository at this point in the history
- le bloc article_schema n'est redéfinit nul part, donc autant le
  supprimer et utiliser directement sa valeur
- personne ne définit de bloc article_centent_schema ou
  article_content_schema (sans la typo), donc suppression également

Ce commit restaure juste les attributs schema.org perdus avec
c29c53f, mais il faudrait sans doute
refaire une passe complète sur ces attributs.

Fix #6604
  • Loading branch information
philippemilink authored Oct 22, 2024
1 parent 42b51ff commit 1a6e95c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions templates/base_content_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@


{% block content_out %}
<article class="content-wrapper" {% block article_schema %}{% endblock %}>
<article class="content-wrapper" itemscope itemtype="http://schema.org/Article">
<header>
{% block headline %}{% endblock %}
</header>
{% block content_page %}
<section class="article-content" {% block article_centent_schema %}{% endblock %}>
<section class="article-content">
{% block content %}{% endblock %}
</section>
{% endblock %}
Expand Down
6 changes: 0 additions & 6 deletions templates/tutorialv2/base_online.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,3 @@
</a>
</li>
{% endblock %}



{% block article_schema %}
itemscope itemtype="http://schema.org/Article"
{% endblock %}
2 changes: 1 addition & 1 deletion templates/tutorialv2/includes/headline/licence.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

{% crispy form %}
{% elif licence %}
<span class="license">{{ licence }}</span>
<span class="license" itemprop="license">{{ licence }}</span>
{% endif %}
4 changes: 2 additions & 2 deletions templates/tutorialv2/includes/headline/title.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="content-title-and-subtitle-group">
<div class="content-title-group">
{% spaceless %}
<h1 class="title">{{ title }}</h1>
<h1 class="title" itemprop="name">{{ title }}</h1>
{% if show_form %}
<a href="#edit-title" class="open-modal edit-button" title="{% trans "Modifier le titre" %}">
<span class="visuallyhidden">{% trans "Modifier le titre" %}</span>
Expand All @@ -48,7 +48,7 @@ <h1 class="title">{{ title }}</h1>
{% endif %}
{% crispy form_subtitle %}
{% else %}
<p class="subtitle">{{ subtitle }}</p>
<h2 class="subtitle" itemprop="description">{{ subtitle }}</h2>
{% endif %}
{% endspaceless %}
</div>
Expand Down

0 comments on commit 1a6e95c

Please sign in to comment.