Skip to content

Commit

Permalink
fix(w3c validation): remove incorrect usage of article tag
Browse files Browse the repository at this point in the history
Update #251
  • Loading branch information
talha131 committed Aug 10, 2019
1 parent df9221f commit e8231e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions templates/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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>
Expand Down

0 comments on commit e8231e0

Please sign in to comment.