Search code examples
stringvariablesjekyllcontains

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?


Solution

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

    {% if a contains b %}