feat(author): add author

This commit is contained in:
Mahdi Dibaiee
2017-10-20 21:17:29 +03:30
parent d3ebc8b77d
commit 3e7918255b
15 changed files with 18 additions and 2 deletions

View File

@ -7,9 +7,9 @@ layout: default
<h1 class="post-title">{{ page.title }}</h1>
<p class="post-meta">
<span>{{ page.date | date: "%b %-d, %Y" }}</span>
{% if page.author %} • <span>{{ page.author }}</span>{% endif %}
{% if page.meta %} • <span>{{ page.meta }}</span>{% endif %}
<span>Reading time: {{ content | reading_time }}</span>
{% if page.author %} • <span><a href='{{ site.authors[page.author].url }}'>{{ page.author }}</a></span>{% endif %}
</p>
</div>