mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
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:
@@ -1,11 +1,11 @@
|
|||||||
{% macro post_link(page) %}
|
{% macro post_link(page) %}
|
||||||
<article>
|
<div>
|
||||||
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
|
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
|
||||||
<div class="post-summary">
|
<div class="post-summary">
|
||||||
{{ page.summary | safe}}
|
{{ page.summary | safe}}
|
||||||
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</div>
|
||||||
{% endmacro post_link %}
|
{% endmacro post_link %}
|
||||||
|
|
||||||
{% macro utterances() %}
|
{% macro utterances() %}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<div class="posts neutral">
|
<div class="posts neutral">
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
<article>
|
<div>
|
||||||
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
|
<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">
|
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
|
||||||
{{ page.date | date(format="%b %d, %Y") }}
|
{{ page.date | date(format="%b %d, %Y") }}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
{{ page.summary | safe}}
|
{{ page.summary | safe}}
|
||||||
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user