Skip to content

Commit

Permalink
fix(single.twig): prevent invalid blog post footer markup
Browse files Browse the repository at this point in the history
the post-meta section was expecting a title
the related posts where nesting a footer into the blog footer element
  • Loading branch information
steffenbew committed Nov 26, 2019
1 parent 26febd4 commit 39fa4fa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions templates/single.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
{{ renderComponent(component) }}
{% endfor %}
</section>
<footer class="post-footer">
<section class="post-meta">
{{ renderComponent('BlockPostFooter', { post: post }) }}
</section>
<section class="post-related">
{{ renderComponent('GridPostsLatest', {'taxonomies': post.categories(), 'options': {'theme': 'themeLight', 'columns': 3}}) }}
</section>
<footer class="post-meta">
{{ renderComponent('BlockPostFooter', { post: post }) }}
</footer>
<section class="post-related">
{{ renderComponent('GridPostsLatest', {'taxonomies': post.categories(), 'options': {'theme': 'themeLight', 'columns': 3}}) }}
</section>
</article>
{% endblock %}

0 comments on commit 39fa4fa

Please # to comment.