From da9525974307e85bae3f4f676f7d20fc79541cfc Mon Sep 17 00:00:00 2001 From: Fernando Ribeiro Date: Tue, 8 Nov 2016 20:15:41 +0000 Subject: [PATCH] Do not assume images would be placed in `/assets/images/` In order to add an image to a post, just use the following syntax: {% include image image_path="/full/path/to/MyPostImage.png" caption="The optional image caption" %} or {% include image image_path="https://example.com/images/MyPostImage.png" caption="The optional image caption" alt="The optional alt text" %} --- _includes/image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/image b/_includes/image index 63fe593d..da829e48 100644 --- a/_includes/image +++ b/_includes/image @@ -3,7 +3,7 @@ {% if include.image_path contains "://" %} "{{ include.image_path }}" {% else %} - "{{ include.image_path | prepend: "/assets/images/" | absolute_url }}" + "{{ include.image_path | absolute_url }}" {% endif %} alt="{% if include.alt %}{{ include.alt }}{% endif %}"> {% if include.caption %}