File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
{%- if page.permalink contains "javascript" -%}
7
7
{%- assign page_type = page.permalink | remove_first: "javascript" -%}
8
8
{%- endif -%}
9
+ {%- if page.permalink contains "version" -%}
10
+ {%- capture version -%}/version{{page.version}}{%- endcapture -%}
11
+ {%- assign page_type = page_type | remove_first: version | remove_first: page.version -%}
12
+ {%- endif -%}
9
13
10
14
{%- if page.language == "python" -%}
11
15
{%- assign pyclass = "current" -%}
43
47
</ a >
44
48
</ li >
45
49
{%- endif -%}
46
- {%- if page.permalink contains {{page_type}} and page.language == "python" -%}
50
+ {%- if page.permalink contains {{page_type}} and page.language == "python" and page.current -%}
47
51
< li class ="lang-nav--item ">
48
52
< a class ="lang_nav_button {{pyclass}} " href ="/python{{page_type}} ">
49
53
< div > < img src ="https://plot.ly/gh-pages/documentation/static/images/python-small.png " alt ="python " class ="lang_nav_thum "> </ div >
You can’t perform that action at this time.
0 commit comments