Skip to content
Permalink
Browse files

fix(w3c validation): remove incorrect usage of article tag

Update #251
  • Loading branch information...
talha131 committed Aug 10, 2019
1 parent df9221f commit e8231e0511441654f9d0827b31fa52f27415e6bf
Showing with 6 additions and 6 deletions.
  1. +4 −4 templates/archives.html
  2. +2 −2 templates/index.html
@@ -46,14 +46,14 @@ <h2 id="{{year }}"><a href="#{{year}}">{{ year }}</a></h2>
{% endif %}

{% if loop.last %}
<article itemscope class="last-entry-of-year">
<div itemscope class="last-entry-of-year">
{% else %}
{% set next_year = loop.nextitem.date.strftime('%Y') %}

{% if next_year != year %}
<article itemscope class="last-entry-of-year">
<div itemscope class="last-entry-of-year">
{% else %}
<article itemscope>
<div itemscope>
{% endif %}
{% endif %}

@@ -68,7 +68,7 @@ <h2 id="{{year }}"><a href="#{{year}}">{{ year }}</a></h2>
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time>
</article>
</div>
{% endfor %}
</div>
</div>
@@ -100,7 +100,7 @@ <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/{{ ARCHI
<div class="recent-posts">
{% for article in articles %}
{% if loop.index0 < RECENT_ARTICLES_COUNT %}
<article itemscope>
<div itemscope>
<a href="{{ SITEURL }}/{{ article.url }}">
{{ article.title }}
{%if article.subtitle %}
@@ -117,7 +117,7 @@ <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/{{ ARCHI
{% if RECENT_ARTICLE_SUMMARY %}
<p>{{article.summary}}</p>
{% endif %}
</article>
</div>
{% endif %}
{% endfor %}
</div>

0 comments on commit e8231e0

Please sign in to comment.
You can’t perform that action at this time.