{% for link in site.data.navs.header.links %}
{% assign link_match = link.href | append: "/" | replace: "//","/" %}
{% assign page_path = page.url | truncate: link_match.size, "" | append: "/" | replace: "//","/" %}
{% if link_match == page_path %}
{% assign active = "active" %}
{% endif %}
{% if link.kids %}
-
{% else %}
-
{{ link.text}}
{% endif %}
{% assign active = "" %}
{% endfor %}