From f7221367d539ff2040fbf8f7c569a8d07496e3ff Mon Sep 17 00:00:00 2001 From: Youssef Raafat Date: Wed, 6 Mar 2019 18:10:21 +0200 Subject: [PATCH] Fix External Articles Search Bug * Fix #3 --- search.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.json b/search.json index a207933f6..84fa5af74 100644 --- a/search.json +++ b/search.json @@ -7,7 +7,7 @@ layout: null "title" : "{{ post.title | escape }}", "category" : "{{ post.category }}", "tags" : "{{ post.tags | join: ', ' }}", - "url" : "{{ site.baseurl }}{{ post.url }}", + "url" : "{{ post.external_url | default: post.url | relative_url }}", "date" : "{{ post.date }}" } {% unless forloop.last %},{% endunless %} {% endfor %}