Merge pull request #8 from grantbachman/default-author-name
Add site author as default page author
This commit is contained in:
commit
28ea06259d
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@ layout: default
|
|||
|
||||
<div class="post">
|
||||
<div class="post-info">
|
||||
<span>Written by </span>{{ page.author }}
|
||||
<span>Written by</span>
|
||||
{% if page.author %}
|
||||
{{ page.author }}
|
||||
{% else %}
|
||||
{{ site.author.name }}
|
||||
{% endif %}
|
||||
|
||||
{% if page.date %}
|
||||
<br>
|
||||
|
|
Loading…
Reference in a new issue