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

@ -13,7 +13,7 @@
{% if f.url contains "://" %}
{% capture f_url %}{{ f.url }}{% endcapture %}
{% else %}
{% capture f_url %}{{ f.url | prepend: base_path }}{% endcapture %}
{% capture f_url %}{{ f.url | prepend: "/" | prepend: base_path }}{% endcapture %}
{% endif %}
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
@ -24,7 +24,7 @@
{% if f.image_path contains "://" %}
"{{ f.image_path }}"
{% else %}
"{{ f.image_path | prepend: "/images/" | prepend: base_path }}"
"{{ f.image_path | prepend: "/" | prepend: base_path }}"
{% endif %}
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
</div>