Reference site settings for site author (default)

This commit is contained in:
Michael Rose
2016-02-23 10:51:40 -05:00
parent 0bb176b456
commit 1a2f3b8025
2 changed files with 15 additions and 15 deletions

View File

@ -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>