add author on home posts list
This commit is contained in:
parent
c550995491
commit
2cf356f673
1 changed files with 7 additions and 2 deletions
|
@ -9,8 +9,13 @@ layout: default
|
|||
<ul class="post-list">
|
||||
{% for post in site.posts %}
|
||||
<li>
|
||||
<span class="post-meta">
|
||||
{% if post.author %}
|
||||
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ post.author }}</span></span> •
|
||||
{% endif %}
|
||||
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
||||
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
||||
{{ post.date | date: date_format }}
|
||||
</span>
|
||||
<h3>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
||||
</h3>
|
||||
|
|
Loading…
Reference in a new issue