|
1 |
| - |
| 1 | +<!-- Capture language --> |
| 2 | +{% capture language %}{% if page.language == 'plotly_js' %}JavaScript{% elsif page.language == 'ggplot2'%}ggplot2{% elsif page.language == 'f_sharp' %}F#{% elsif page.language == 'matlab' %}MATLAB{% else %}{{page.language | capitalize }}{% endif %}{% endcapture %} |
2 | 3 | <!-- Create a title -->
|
3 | 4 | {% capture title %}
|
4 | 5 | {% if page.permalink == '/python/' or page.language == '/julia/' or page.language == '/r/' or page.language == '/ggplot2/' or page.language == '/f_sharp/' or page.language == '/matlab/' or page.language == '/javascript/' %}{{page.name}}
|
5 | 6 | {% elsif page.name == '404' %} 404 Page Not Found
|
6 | 7 | {% elsif page.permalink == '/api/' or page.permalink == '/graphing-libraries/' %} Plotly Open Source Graphing Libraries
|
7 |
| - {% elsif page.name %} {{page.name | capitalize}} with {% if page.language == 'plotly_js' %}JavaScript{% elsif page.language == 'ggplot2'%}ggplot2{% elsif page.language == 'f_sharp' %}F#{% elsif page.language == 'matlab' %}MATLAB{% else %}{{page.language | capitalize }}{% endif %}{% else %} Plotly Open Source Graphing Libraries{% endif %} |
| 8 | + {% elsif page.name %} {{page.name | capitalize}} in {{language}}{% else %} Plotly Open Source Graphing Libraries{% endif %} |
8 | 9 | {% endcapture %}
|
9 | 10 | <!-- Count number of plots on the page -->
|
10 | 11 | {% if page.language == 'python' %} {% assign split_class = 'plotly-graph-' %}
|
|
13 | 14 | {% elsif page.language == 'ggplot2' %} {% assign split_class = 'plotly html-widget' %}
|
14 | 15 | {% elsif page.language == 'plotly_js' %} {% assign split_class = 'Plotly.newPlot('myDiv_' %}
|
15 | 16 | {% elsif page.language == 'matlab' %} {% assign split_class = 'plotly-graph-' %}
|
16 |
| - {% elsif page.language == 'f_sharp' %} {% assign split_class = 'output_html rendered_html output_subarea output_execute_result' %} |
| 17 | + {% elsif page.language == 'f_sharp' %} {% assign split_class = 'output_wrapper' %} |
17 | 18 | {% else %} {% assign split_class = 'plotly-graph-' %}
|
18 | 19 | {% endif %}
|
19 | 20 |
|
|
30 | 31 | {% assign counter = counter | plus: 1 %}
|
31 | 32 | {% endif %}
|
32 | 33 | {% endfor %}
|
33 |
| - {% capture description %}"Over {{counter}} examples of {{page.name}} including changing color, size, log axes, and more."{% endcapture %} |
34 |
| -{% endif %} |
| 34 | + |
| 35 | + {% if counter == 0 %} |
| 36 | + {% capture description %}{{page.description}}{% endcapture %} |
| 37 | + {% elsif counter < 8 %} |
| 38 | + {% capture description %}"Detailed examples of {{page.name}} including changing color, size, log axes, and more in {{language}}."{% endcapture %} |
| 39 | + {% else %} |
| 40 | + {% capture description %}"Over {{counter}} examples of {{page.name}} including changing color, size, log axes, and more in {{language}}."{% endcapture %} |
| 41 | + {% endif %} |
| 42 | +{% endif %} |
35 | 43 |
|
36 | 44 |
|
37 | 45 | <!-- SEO Tags - title, meta_description -->
|
|
0 commit comments