How can i compare two string variable with Jekyll

in Jekyll i have tow variable {% assign a="/home/deep" %} and {% assign b="/home/deep/deeper" %} now how can i check if b contains a ? My idea was {% if b contains a %} or {% if b contains "{{ a }}" %} but both are always false....

Any idea?

Upvotes: 2

Views: 1467

Answers (1)

Problem solved. After restart the hosting server it works. For people with the same question:

{% if a contains b %}

Upvotes: 4

Related Questions