Reference site settings for site author (default)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
{% if page.author %}
|
||||
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
|
||||
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
|
||||
{% endif %}
|
||||
|
||||
<div itemscope itemtype="http://schema.org/Person">
|
||||
@ -7,7 +7,7 @@
|
||||
{% if author.avatar contains "http" %}
|
||||
<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||
{% else %}
|
||||
<img src="{{ author.avatar | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||
<img src="{{ author.avatar | prepend: "/images/" | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||
{% endif %}
|
||||
|
||||
<h3 class="author-name">{{ author.name }}</h3>
|
||||
|
Reference in New Issue
Block a user