1 2 3 4 5 6 7
<ul> {% for item in site.data.reference.docs %} {% assign z = '/win-acme' | append: page.url %} {% assign x = item.url | append: '.html' %} <li><a href="{{ item.url }}" {% if z == x %}style="color: #e83e8c;" {% endif %}>{{ item.title }}</a></li> {% endfor %} </ul>