We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dde015 commit 1f7cff1Copy full SHA for 1f7cff1
_includes/sidebar-toc-multipage-overview.html
@@ -18,11 +18,10 @@ <h5 class="contents">Contents</h5>
18
19
{% if pg.num and (page.partof == pg.partof) %}
20
{% if page.language %} <!-- if page is a translation, get the translated title -->
21
- {% assign prefix = page.language | prepend: '/' %}
22
- {% assign localizedId = pg.id | prepend: prefix %}
+ {% assign localizedId = pg.id %}
23
{% for lpg in site.[page.language] %}
24
{% if lpg.id == localizedId %}
25
- <li><a {% if page.title == lpg.title %}class="active"{% endif %} href="/{{ site.baseurl }}{{ page.language }}{{ pg.url }}">{{ lpg.title }}</a>
+ <li><a {% if page.title == lpg.title %}class="active"{% endif %} href="{{ site.baseurl }}{{ pg.url }}">{{ lpg.title }}</a>
26
{{ toc }}</li>
27
{% endif %}
28
{% endfor %}
0 commit comments