Skip to content

Commit

Permalink
Add site author as default page author
Browse files Browse the repository at this point in the history
  • Loading branch information
grantbachman committed Oct 9, 2017
1 parent e06bbea commit 7a5e328
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

<div class="post">
<div class="post-info">
<span>Written by&nbsp;</span>{{ page.author }}
<span>Written by&nbsp;</span>
{% if page.author %}
{{ page.author }}
{% else %}
{{ site.author.name }}
{% endif %}

{% if page.date %}
<br>
Expand Down

0 comments on commit 7a5e328

Please sign in to comment.