From 21aa8a491286440841b8dbb2b6f3c228a855b64e Mon Sep 17 00:00:00 2001 From: juego Date: Thu, 15 May 2014 02:09:09 +0200 Subject: [PATCH] finally if statements works correctly --- feed.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feed.xml b/feed.xml index dd11239..9a2595d 100644 --- a/feed.xml +++ b/feed.xml @@ -4,7 +4,8 @@ layout: none {% assign add_protocol = false %} -{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %} +{% assign protocol = site.url | split: '/' | first %} +{% if site.url != '' and protocol != 'http:' and protocol != 'https:' %} {% assign site_url = site.url | prepend: 'http:' %} {% assign add_protocol = true %} {% else %}