Allow images to be placed in other folders

- Remove `images/` only restriction and encourage placement in `assets/images/` instead
This commit is contained in:
Michael Rose
2016-09-21 22:15:17 -04:00
parent 4a26d61008
commit 77c5642803
7 changed files with 19 additions and 19 deletions

View File

@@ -8,9 +8,9 @@
<div class="author__avatar">
{% if author.avatar contains "://" %}
<img src="{{ author.avatar }}" alt="{{ author.name }}">
<img src="{{ author.avatar | prepend: "/" }}" alt="{{ author.name }}">
{% else %}
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
<img src="{{ author.avatar | prepend: "/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
{% endif %}
</div>