Replace base_path with absolute_url filter

This commit is contained in:
Fernando Ribeiro 2016-11-05 21:46:02 +00:00 committed by GitHub
parent 37d4eb8807
commit 637e5d9934

View file

@ -3,7 +3,7 @@
{% if include.image_path contains "://" %}
"{{ include.image_path }}"
{% else %}
"{{ include.image_path | prepend: "/assets/images/" | prepend: absolute_url }}"
"{{ include.image_path | prepend: "/assets/images/" | absolute_url }}"
{% endif %}
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
{% if include.caption %}