Browse Source

fixed issue with jekyll not having endsWith and breaking selection in API Reference and possible other pages

pull/1033/head
Spocke 6 years ago
parent
commit
ef915747c3
  1. 4
      _includes/nav.html

4
_includes/nav.html

@ -1,7 +1,7 @@
<ul>
{% for link in include.links %}
{% capture prefixedLinkUrl %}:{{ include.preceding_address }}{{ link.url }}{% endcapture %}
{% capture prefixedPageUrl %}:{{ page.url }}{% endcapture %}
{% capture prefixedLinkUrl %}:{{ include.preceding_address }}{{ link.url }}/{% endcapture %}
{% capture prefixedPageUrl %}:{{ page.url }}/{% endcapture %}
{% if prefixedPageUrl contains prefixedLinkUrl %}
<li class="active">
{% else %}

Loading…
Cancel
Save