Skip to content

Commit

Permalink
fix(w3c validation): remove redundant sections without heading
Browse files Browse the repository at this point in the history
Update #251
  • Loading branch information
talha131 committed Aug 10, 2019
1 parent b700224 commit df9221f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions templates/_includes/article_author.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% for author in article.authors %}
{% if author|string in AUTHORS %}
{% if tag.open %}
<section>
<hr />
{% set tag.open = false %}
{% set tag.close = true %}
Expand All @@ -21,6 +20,5 @@
{% endif %}
{% endfor %}
{% if tag.close %}
</section>
{% endif %}
{% endmacro %}
2 changes: 0 additions & 2 deletions templates/_includes/share_links.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% macro share_links(article) %}
{% if article.share_post and article.status != 'draft' %}
<section>
<p id="post-share-links">
{% if article.share_post_intro %}
{{ article.share_post_intro }}
Expand All @@ -14,6 +13,5 @@
<a href="{{article.share_post['email']}}" target="_blank" title="Share via Email">Email</a>
</p>
</section>
{% endif %}
{% endmacro %}
2 changes: 0 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/{{ ARCHI
</small>
{% endif %}
</a>
<section>
posted in
<a href="{{ SITEURL }}/{{ CATEGORIES_URL }}#{{ article.category.slug }}-ref">{{ article.category }}</a>
<div class="recent-posts-time">
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
</div>
</section>
{% if RECENT_ARTICLE_SUMMARY %}
<p>{{article.summary}}</p>
{% endif %}
Expand Down

0 comments on commit df9221f

Please sign in to comment.