Use <div> instead of <article> for post list

The <article> tag is for self-contained content, which the post list isn't really. I hope that this change makes search engines display the blog's introduction instead of the first post's introduction in their results.
This commit is contained in:
Philipp Oppermann
2019-03-27 19:26:59 +01:00
parent 84c539df67
commit bbe2fe000d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
{% macro post_link(page) %}
<article>
<div>
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
<div class="post-summary">
{{ page.summary | safe}}
<a class="read-more" href="/{{ page.path | safe }}">read&nbsp;more…</a>
</div>
</article>
</div>
{% endmacro post_link %}
{% macro utterances() %}

View File

@@ -12,7 +12,7 @@
<div class="posts neutral">
{% for page in section.pages %}
<article>
<div>
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
{{ page.date | date(format="%b %d, %Y") }}
@@ -21,7 +21,7 @@
{{ page.summary | safe}}
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
</div>
</article>
</div>
{% endfor %}
</div>