Skip to content

Commit bcc12f1

Browse files
authored
Merge pull request #390 from plotly/update-link-3
Fix logo link
2 parents 69273aa + 66d4061 commit bcc12f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_includes/layouts/_header-main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
<div class="--wrap">
2121
<div class="--wrap-left">
2222
<div class="-identity">
23-
<a href="https://plotly.com/"><img src="/all_static/images/graphing_library_dark.svg"
23+
<a href="{% if page.permalink contains 'python/' %}/python/{% else %}https://plotly.com/{% endif %}"><img src="/all_static/images/graphing_library_dark.svg"
2424
style="height: 30px;" class="logo-dark"></a>
25-
<a href="/graphing-libraries/"><img src="/all_static/images/graphing_library.svg"
25+
<a href="{% if page.permalink contains 'python/' %}/python/{% else %}/graphing-libraries/{% endif %}"><img src="/all_static/images/graphing_library.svg"
2626
style="height: 30px;" class="logo-white"></a>
2727

2828

_includes/layouts/side-bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<aside class="--sidebar-container">
9696
<div class="--sidebar-fixed reference" data-spy="affix" id="where">
9797
<div class="brand">
98-
<a href="/graphing-libraries/"><img src="/all_static/images/graphing_library.svg" style="height: 30px;"></a>
98+
<a href="{% if page.permalink contains 'python/' %}/python/{% else %}/graphing-libraries/{% endif %}"><img src="/all_static/images/graphing_library.svg" style="height: 30px;"></a>
9999
</div>
100100
{% 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/" %}
101101
<button id="modal-button" type="button" data-toggle="modal" data-target="#myModal">

0 commit comments

Comments
 (0)