Skip to content

Commit c80ab8c

Browse files
committed
Change condition for sphinx-gallery widgets at the top of the page
1 parent 71e5574 commit c80ab8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytorch_sphinx_theme2/templates/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@
196196
});
197197
}
198198
</script>
199+
{% endif %}
200+
{% if theme_pytorch_project == 'tutorials' or has_sphinx_gallery %}
199201
<div class="pytorch-call-to-action-links">
200202
<div id="tutorial-type">{{ pagename }}</div>
201203
<a id="colab-link" data-behavior="call-to-action-event" data-response="Run in Google Colab" target="_blank">

0 commit comments

Comments
 (0)