Include absolute URL shorthand

This commit is contained in:
Michael Rose
2016-02-22 21:22:07 -05:00
parent 1b4d507e21
commit a572dbaae0
7 changed files with 43 additions and 36 deletions

@ -0,0 +1 @@
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}

@ -7,7 +7,7 @@
{% if author.avatar contains 'http' %}
<img src="{{ author.avatar }}" class="bio-photo" alt="{{ author.name }} bio photo">
{% else %}
<img src="{{ author.avatar | prepend: "/images/" | prepend: absurl }}" class="bio-photo" alt="{{ author.name }} bio photo">
<img src="{{ author.avatar | prepend: absurl }}" class="bio-photo" alt="{{ author.name }} bio photo">
{% endif %}
<h3 itemprop="name">{{ author.name }}</h3>