Skip to content

Commit c8fe966

Browse files
committed
Update logo href with conditional utm
1 parent c32d6e3 commit c8fe966

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

‎_includes/layouts/side-bar.html‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,13 @@
9595
<aside class="--sidebar-container">
9696
<div class="--sidebar-fixed reference" data-spy="affix" id="where">
9797
<div class="brand">
98-
<a href="{% if page.permalink contains 'python/' %}/python/{% else %}/graphing-libraries/{% endif %}"><img src="/all_static/images/logo-white.svg" style="height: 30px;"></a>
98+
<a
99+
href="{% if page.permalink contains 'python/' %}https://plotly.com/?source=graphing_libraries&medium=documentation&content=logo_python{% else if page.permalink contains 'javascript/' %}https://plotly.com/?source=graphing_libraries&medium=documentation&content=logo_javascript{% else if page.permalink contains 'r/' %}https://plotly.com/?source=graphing_libraries&medium=documentation&content=logo_r{% else %}/graphing-libraries/{% endif %}">
100+
101+
<img src="/all_static/images/logo-white.svg" style="height: 30px;"></a>
99102
</div>
100-
{% if page.permalink contains "javascript/" or page.permalink contains "python/" or page.permalink contains "r/" or page.permalink contains "julia/" or page.permalink contains "ggplot2/" %}
103+
{% if page.permalink contains "javascript/" or page.permalink contains "python/" or page.permalink contains "r/"
104+
or page.permalink contains "julia/" or page.permalink contains "ggplot2/" %}
101105
<button id="modal-button" type="button" data-toggle="modal" data-target="#myModal">
102106
<input id="modal-input" style="border-radius: 5px; width: 100%;" type="text" placeholder=" Search..."
103107
readonly />
@@ -110,7 +114,7 @@
110114

111115
{% else %}
112116

113-
<details style="color: white;margin-top: 20px;" {% if page.layout == "langindex" %} open {%endif %}>
117+
<details style="color: white;margin-top: 20px;" {% if page.layout=="langindex" %} open {%endif %}>
114118
<summary>Quick Reference</summary>
115119
<nav class="--sidebar-body watch" id="where">
116120
<ul class="--sidebar-list" style="margin-left: 15px;">
@@ -119,7 +123,8 @@
119123
<a href="/{{ langue }}/getting-started" class="js-splash--navigation-item">Getting Started</a>
120124
</li>
121125

122-
{% if page.language == "r" or page.language == "python" or page.language == "plotly_js" or page.language == "ggplot2" or page.language == "matlab"%}
126+
{% if page.language == "r" or page.language == "python" or page.language == "plotly_js" or
127+
page.language == "ggplot2" or page.language == "matlab"%}
123128
<li class="--sidebar-item">
124129
<a href="/{{ langue }}/is-plotly-free" class="js-splash--navigation-item">Is Plotly Free?</a>
125130
</li>
@@ -594,7 +599,7 @@
594599
<details style="color: white;margin-top: 20px;" open>
595600
<summary>On This Page</summary>
596601
<nav class="--sidebar-body watch" id="where">
597-
<ul class="--sidebar-list" id="nav_header_insertion_list"></ul>
602+
<ul class="--sidebar-list" id="nav_header_insertion_list"></ul>
598603
</nav>
599604
</details>
600605

@@ -604,4 +609,4 @@
604609

605610
{% include layouts/webinar_plug.html %}
606611

607-
</aside>
612+
</aside>

0 commit comments

Comments
 (0)