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?
答案 0 :(得分:2)
问题解决了。重启托管服务器后,它可以工作。 对于有相同问题的人:
{% if a contains b %}