Fix recent posts heading
This commit is contained in:
@@ -4,9 +4,9 @@ home: true
|
||||
---
|
||||
|
||||
{% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %}
|
||||
{%- if site.length > 0 -%}
|
||||
<h3 class="posts-item-note" aria-label="Recent Posts">Recent Posts</h3>
|
||||
{%- endif -%}
|
||||
{%- if site.posts != empty -%}
|
||||
<h2 aria-label="Recent Posts">Recent Posts</h2>
|
||||
<div>
|
||||
{%- for post in site.posts limit: site.number_of_posts -%}
|
||||
<article class="post-item">
|
||||
<span class="post-item-date">{{ post.date | date: "%b %d, %Y" }}</span>
|
||||
@@ -15,3 +15,5 @@ home: true
|
||||
</h4>
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user