Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34f657e

Browse files
narrow down lang-nav (plotly#1386)
1 parent 86256c3 commit 34f657e

File tree

1 file changed

+1
-58
lines changed

1 file changed

+1
-58
lines changed

_includes/lang-navigation.html

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,12 @@
3535

3636
{%- assign allpages = site.posts -%}
3737
{%- for page in allpages -%}
38-
{%- if page.permalink contains {{page_type}} and page.language == "excel" -%}
39-
<li class="lang-nav--item">
40-
<a class="lang_nav_button {{xlsxclass}}" href="https://help.plot.ly/excel{{page_type}}">
41-
<div><img src="https://plot.ly/gh-pages/documentation/static/images/excel-small.png" alt="excel" class="lang_nav_thum"></div>
42-
Excel
43-
</a>
44-
</li>
45-
{%- endif -%}
4638
{%- if page.permalink contains {{page_type}} and page.language == "python" -%}
4739
<li class="lang-nav--item">
4840
<a class="lang_nav_button {{pyclass}}" href="/python{{page_type}}">
4941
<div><img src="https://plot.ly/gh-pages/documentation/static/images/python-small.png" alt="python" class="lang_nav_thum"></div>
5042
Python
5143
</a>
52-
</li>
53-
{%- endif -%}
54-
{%- if page.permalink contains {{page_type}} and page.language == "pandas" -%}
55-
<li class="lang-nav--item">
56-
<a class="lang_nav_button {{pdclass}}" href="/pandas{{page_type}}">
57-
<div><img src="https://plot.ly/gh-pages/documentation/static/images/pandas-small.png" alt="pandas" class="lang_nav_thum"></div>
58-
Pandas
59-
</a>
60-
</li>
61-
{%- endif -%}
62-
63-
{%- if page.permalink contains {{page_type}} and page.language == "matlab" -%}
64-
<li class="lang-nav--item">
65-
<a class="lang_nav_button {{matclass}}" href="/matlab{{page_type}}">
66-
<div><img src="https://plot.ly/gh-pages/documentation/static/images/MATLAB-small.png" alt="matlab" class="lang_nav_thum"></div>
67-
MATLAB
68-
</a>
6944
</li>
7045
{%- endif -%}
7146
{%- if page.permalink contains {{page_type}} and page.language == "r" -%}
@@ -74,49 +49,17 @@
7449
<div><img src="https://plot.ly/gh-pages/documentation/static/images/r-small.png" alt="r" class="lang_nav_thum"></div>
7550
R
7651
</a>
77-
</li>
78-
{%- endif -%}
79-
{%- if page.permalink contains {{page_type}} and page.language == "matplotlib" -%}
80-
<li class="lang-nav--item">
81-
<a class="lang_nav_button {{matplotclass}}" href="/matplotlib{{page_type}}">
82-
<div><img src="https://images.plot.ly/language-icons/api-home/matplotlib.png" alt="matplotlib" class="lang_nav_thum"></div>
83-
matplotlib
84-
</a>
85-
</li>
86-
{%- endif -%}
87-
{%- if page.permalink contains {{page_type}} and page.language == "ggplot2" -%}
88-
<li class="lang-nav--item">
89-
<a class="lang_nav_button {{ggplotclass}}" href="/ggplot2{{page_type}}">
90-
<div><img src="https://images.plot.ly/language-icons/api-home/ggplot2-logo.png" alt="ggplot2" class="lang_nav_thum"></div>
91-
ggplot2
92-
</a>
9352
</li>
9453
{%- endif -%}
9554
{%- if page.permalink contains {{page_type}} and page.language == "plotly_js" -%}
9655
<li class="lang-nav--item">
9756
<a class="lang_nav_button {{plotjsclass}}" href="/javascript{{page_type}}">
9857
<div><img src="https://images.plot.ly/language-icons/api-home/js-logo.png" alt="plotly.js" class="lang_nav_thum"></div>
9958

100-
plotly.js
59+
Javascript
10160
</a>
10261
</li>
10362
{%- endif -%}
104-
{%- if page.permalink contains {{page_type}} and page.language == "scala" -%}
105-
<li class="lang-nav--item">
106-
<a class="lang_nav_button {{scalaclass}}" href="/scala{{page_type}}">
107-
<div><img src="https://images.plot.ly/plotly-documentation/thumbnail/scala-small.jpg" alt="scala" class="lang_nav_thum"></div>
108-
Scala
109-
</a>
110-
</li>
111-
{%- endif -%}
112-
{%- if page.permalink contains {{page_type}} and page.language == "nodejs" -%}
113-
<li class="lang-nav--item">
114-
<a class="lang_nav_button" href="/nodejs{{page_type}}">
115-
<div><img src="https://images.plot.ly/language-icons/api-home/nodejs-logo.png" alt="node js" class="lang_nav_thum"></div>
116-
node.js
117-
</a>
118-
</li>
119-
{%- endif -%}
12063
{%- endfor -%}
12164
</ul>
12265
</nav>

0 commit comments

Comments
 (0)