Merge pull request #8 from grantbachman/default-author-name

Add site author as default page author
This commit is contained in:
Chester How 2017-10-10 08:32:05 +08:00 committed by GitHub
commit 28ea06259d

View file

@ -4,7 +4,12 @@ layout: default
<div class="post">
<div class="post-info">
<span>Written by&nbsp;</span>{{ page.author }}
<span>Written by</span>
{% if page.author %}
{{ page.author }}
{% else %}
{{ site.author.name }}
{% endif %}
{% if page.date %}
<br>