Add site author as default page author
This commit is contained in:
parent
e06bbeaa03
commit
7a5e328aaf
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@ layout: default
|
||||||
|
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<div class="post-info">
|
<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 %}
|
{% if page.date %}
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in a new issue