Skip to content

Commit

Permalink
🔍️(backend) fix duplicated h1 in blogpost detail page
Browse files Browse the repository at this point in the history
On blogpost detail page, there is currently a SEO major issue. Indeed, there are
 two H1 on the same page. The first is the news label on the subheader and the
 second is the blogpost title itself. The post title is the most relevant one
 and the subheader "News" is not really relevant that's why we decide to fix
 this issue to simply remove the subheader on the blogpost detail template.
  • Loading branch information
jbpenrath committed Sep 24, 2024
1 parent 47ba0c1 commit 118e884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unrealeased]

### Changed

- Remove News subheader in blogpost detail page


## [2.29.2]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@

{% block body_rdfa %} vocab="https://schema.org/" typeof="Article"{% endblock body_rdfa %}

{% block subheader_content %}
<div class="subheader__container">
<h1 class="subheader__title">{% page_attribute "page_title" request.current_page.parent_page %}</h1>
</div>
{% endblock subheader_content %}

{% block content %}
{% spaceless %}
{% block content_header %}{% endblock %}
Expand Down

0 comments on commit 118e884

Please sign in to comment.