diff --git a/_layouts/redirect.html b/_layouts/redirect.html index 1a742da..7205998 100644 --- a/_layouts/redirect.html +++ b/_layouts/redirect.html @@ -28,8 +28,19 @@

Redirecting …

{% if jekyll.environment != "local" and site.shynet %} - - + + {% comment %} This is to prevent double slashes "//" {% endcomment %} + {% assign shynet_last_char = site.shynet | slice: -1 %} + + {% if shynet_last_char == "/" %} + {% assign new_length = site.shynet | size | minus: 1 %} + {% assign shynet = site.shynet | slice: 0, new_length %} + {% else %} + {% assign shynet = site.shynet %} + {% endif %} + + + {% endif %}