Skip to content

Commit cb16a45

Browse files
shuffle language listing
1 parent 0776c60 commit cb16a45

File tree

6 files changed

+63
-51
lines changed

6 files changed

+63
-51
lines changed

_includes/layouts/_header-main.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@
6565
<div class="icon"></div>
6666
C#
6767
</a>
68+
{% elsif language == "plotly_js" %}
69+
<a class="{{language}}">
70+
<div class="icon"></div>
71+
Javascript
72+
</a>
73+
{% elsif language == "javascript" %}
74+
<a class="{{language}}">
75+
<div class="icon"></div>
76+
Javascript
77+
</a>
6878

6979
{% elsif language == "fsharp" %}
7080
<a class="{{language}}">
@@ -84,14 +94,19 @@
8494
<div class="icon"></div>Python
8595
</a>
8696
</li>
97+
<li>
98+
<a href="https://plotly.com/r/" class="r">
99+
<div class="icon"></div>R
100+
</a>
101+
</li>
87102
<li>
88103
<a href="https://plotly.com/julia/" class="julia">
89104
<div class="icon"></div>Julia
90105
</a>
91106
</li>
92107
<li>
93-
<a href="https://plotly.com/r/" class="r">
94-
<div class="icon"></div>R
108+
<a href="https://plotly.com/javascript/" class="plotly_js">
109+
<div class="icon"></div>Javascript
95110
</a>
96111
</li>
97112
<li>
@@ -104,11 +119,6 @@
104119
<div class="icon"></div>MATLAB
105120
</a>
106121
</li>
107-
<li>
108-
<a href="https://plotly.com/csharp/" class="csharp">
109-
<div class="icon"></div>C#
110-
</a>
111-
</li>
112122
<li>
113123
<a href="https://plotly.com/fsharp/" class="fsharp">
114124
<div class="icon"></div>F#
@@ -177,4 +187,4 @@
177187
</div>
178188
</div>
179189
</header>
180-
</div>
190+
</div>

_includes/layouts/page-another-language.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!--
2+
13
{% assign post_array = "" | split: ',' %}
24
{% assign split_page = page.language | append: "/" %}
35
{% assign link = page.permalink | split: split_page | last %}
@@ -283,3 +285,4 @@
283285
</div>
284286
</div>
285287
{% endif %}
288+
-->

_layouts/base.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ <h1>
5555
ggplot2
5656
{% elsif page.language == "fsharp" %}
5757
F#
58-
{% elsif page.language == "csharp" %}
59-
C#
6058
{% elsif page.language == "matlab" %}
6159
MATLAB<sup>&reg;</sup>
6260
{% else %}
@@ -94,11 +92,11 @@ <h1>
9492
src="/all_static/images/dash.png" /></a>
9593

9694
{% endif %}
97-
95+
9896
<!--End Plotly Basics Section-->
9997
</section>
100-
101-
98+
99+
102100
</div>
103101
</main>
104102

@@ -110,4 +108,4 @@ <h1>
110108

111109
</body>
112110

113-
</html>
111+
</html>

_posts/2015-07-26-index.html

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<h2 style="margin-top:40px">Plotly Open Source Graphing Libraries</h2>
2525
<span class="welcome">
2626
<p>
27-
Interactive charts and maps for Python, R, Julia, ggplot2, F#, C#, MATLAB®, Chart Studio, and Dash.
27+
Interactive charts and maps for Python, R, Julia, Javascript, ggplot2, F#, MATLAB®, and Dash.
2828
</p>
2929
<br>
3030
</span>
@@ -91,56 +91,56 @@ <h2>Plotly Julia<br />Open Source<br />Graphing Library</h2>
9191

9292
</a>
9393
</li>
94-
<li>
95-
<a href="/ggplot2/">
9694

95+
<li>
96+
<a href="/javascript/">
9797
<div class="category-wrap">
98-
<div class="category-img"><img src="../all_static/images/ggplot2.png" alt="">
98+
<div class="category-img"><img src="../all_static/images/icon-plotly_js.png" alt="">
9999
</div>
100100
<div class="category-meta">
101-
<h2>Plotly ggplot2<br />Open Source<br />Graphing Library</h2>
101+
<h2>Plotly Javascript<br />Open Source<br />Graphing Library</h2>
102102
<!--<p>-->
103103
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
104104
<!--dashboards.-->
105105
<!--</p>-->
106106
</div>
107107
<div class="category-wrap github-stars">
108108
<!-- Place this tag where you want the button to render. -->
109-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.R&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
109+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.js&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
110110
</div>
111111
</div>
112112

113113
</a>
114114
</li>
115-
116115
<li>
117-
<a href="/fsharp/">
116+
<a href="/ggplot2/">
117+
118118
<div class="category-wrap">
119-
<div class="category-img"><img src="../all_static/images/icon-fsharp.png" alt="">
119+
<div class="category-img"><img src="../all_static/images/ggplot2.png" alt="">
120120
</div>
121121
<div class="category-meta">
122-
<h2>Plotly F#<br />Open Source<br />Graphing Library</h2>
122+
<h2>Plotly ggplot2<br />Open Source<br />Graphing Library</h2>
123123
<!--<p>-->
124124
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
125125
<!--dashboards.-->
126126
<!--</p>-->
127127
</div>
128128
<div class="category-wrap github-stars">
129129
<!-- Place this tag where you want the button to render. -->
130-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=Plotly.NET&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
130+
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.R&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
131131
</div>
132132
</div>
133133

134134
</a>
135135
</li>
136136

137137
<li>
138-
<a href="/csharp/">
138+
<a href="/fsharp/">
139139
<div class="category-wrap">
140-
<div class="category-img"><img src="../all_static/images/icon-csharp.png" alt="">
140+
<div class="category-img"><img src="../all_static/images/icon-fsharp.png" alt="">
141141
</div>
142142
<div class="category-meta">
143-
<h2>Plotly C#<br />Open Source<br />Graphing Library</h2>
143+
<h2>Plotly F#<br />Open Source<br />Graphing Library</h2>
144144
<!--<p>-->
145145
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
146146
<!--dashboards.-->
@@ -161,7 +161,7 @@ <h2>Plotly C#<br />Open Source<br />Graphing Library</h2>
161161
<div class="category-img"><img src="../all_static/images/icon-matlab.png" alt="">
162162
</div>
163163
<div class="category-meta">
164-
<h2>Plotly Matlab<br />Open Source<br />Graphing Library</h2>
164+
<h2>Plotly MATLAB®<br />Open Source<br />Graphing Library</h2>
165165
<!--<p>-->
166166
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
167167
<!--dashboards.-->
@@ -176,27 +176,6 @@ <h2>Plotly Matlab<br />Open Source<br />Graphing Library</h2>
176176
</a>
177177
</li>
178178

179-
<li>
180-
<a href="https://plotly.com/chart-studio-help/tutorials/">
181-
<div class="category-wrap">
182-
<div class="category-img"><img src="../all_static/images/icon-chart-studio.png" alt="">
183-
</div>
184-
<div class="category-meta">
185-
<h2>Plotly <br>Chart Studio</h2>
186-
<!--<p>-->
187-
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
188-
<!--dashboards.-->
189-
<!--</p>-->
190-
</div>
191-
<div class="category-wrap github-stars">
192-
<!-- Place this tag where you want the button to render. -->
193-
<iframe src="https://ghbtns.com/github-btn.html?user=plotly&repo=plotly.py&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
194-
</div>
195-
</div>
196-
197-
</a>
198-
</li>
199-
200179
<li>
201180
<a href="https://dash.plotly.com/">
202181
<div class="category-wrap">
@@ -205,7 +184,7 @@ <h2>Plotly <br>Chart Studio</h2>
205184
<img src="../all_static/images/icon-dash.png" alt="" class="dash-light">
206185
</div>
207186
<div class="category-meta">
208-
<h2>Plotly Dash</h2>
187+
<h2>Plotly Dash<br />Open Source <br />Analytical App Framework</h2>
209188
<!--<p>-->
210189
<!--Upload Excel sheets to plotly to build best-practice charts, reports and-->
211190
<!--dashboards.-->

all_static/css/improve.css

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/improve.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,16 @@ body header.header-main.\--default nav.--nav-meta {
10301030
}
10311031
}
10321032

1033+
&.plotly_js {
1034+
display: inline-block;
1035+
order: 14;
1036+
1037+
.icon {
1038+
background-image: url("../images/icon-plotly_js.png");
1039+
background-size: 20px auto;
1040+
}
1041+
}
1042+
10331043
&.dash {
10341044
display: inline-block;
10351045

0 commit comments

Comments
 (0)