Make author avatar optional
3 files changed, 9 insertions(+), 7 deletions(-) M _includes/author-profile.html D assets/images/bio-photo.jpg M example/assets/images/bio-photo.jpg -rwxr-xr-x => -rw-r--r--
M _includes/author-profile.html => _includes/author-profile.html +9 -7
@@ 4,13 4,15 @@ <div itemscope itemtype="http://schema.org/Person"> <div class="author__avatar"> {% if author.avatar contains "://" %} <img src="{{ author.avatar }}" alt="{{ author.name }}"> {% else %} <img src="{{ author.avatar | prepend: "/" | absolute_url }}" class="author__avatar" alt="{{ author.name }}"> {% endif %} </div> {% if author.avatar %} <div class="author__avatar"> {% if author.avatar contains "://" %} <img src="{{ author.avatar }}" alt="{{ author.name }}"> {% else %} <img src="{{ author.avatar | prepend: "/" | absolute_url }}" class="author__avatar" alt="{{ author.name }}"> {% endif %} </div> {% endif %} <div class="author__content"> <h3 class="author__name">{{ author.name }}</h3>
D assets/images/bio-photo.jpg => assets/images/bio-photo.jpg +0 -0
M example/assets/images/bio-photo.jpg => example/assets/images/bio-photo.jpg +0 -0