Skip to content

Commit

Permalink
Corrected header hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Sparks committed Oct 14, 2020
1 parent f86c4e9 commit ee26cce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notmyidea-cms/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
{% if loop.index == 1 %}
<section id="content" class="body">
<aside id="featured"><article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
}}">{{ article.title }}</a></h1>
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
}}">{{ article.title }}</a></h2>
{% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->
{% if loop.length > 1 %}
<h1>Other articles</h1>
<!-- <h2>Other articles</h2> -->
<hr />
<ol id="posts-list" class="hfeed">
{% endif %}
{% else %}
<li><article class="hentry">
<header>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
</header>

<div class="entry-content">
Expand Down

1 comment on commit ee26cce

@Eric-Sparks
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I downgraded these headers to better comply with normal/regular web expectations. This is also an accessibility issue (screen readers). Tested on my own site without any issues.

Please sign in to comment.