Skip to content

Commit c695f9c

Browse files
author
Brandon Green
committed
Update conditional to check for presence of demo link
1 parent 04bb653 commit c695f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/hub_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>
2929
<div class="detail-button-container">
3030
<a href="{{ page.github-link }}"><button class="btn btn-lg with-right-white-arrow detail-github-link">View on Github</button></a>
3131
<a href="https://colab.research.google.com/github/pytorch/pytorch.github.io/blob/master/{{ page.path | replace: "_hub", "assets/hub" | replace: ".md", ".ipynb" }}"><button class="btn btn-lg with-right-white-arrow detail-colab-link">Open on Google Colab</button></a>
32-
{% if page.demo-model == true %}
32+
{% if page.demo-model-link %}
3333
{% if page.demo-model-button-text == blank or page.demo-model-button-text == nil %}
3434
<a href="{{ page.demo-model-link }}"><button class="btn btn-lg with-right-white-arrow detail-web-demo-link">Demo Model Output</button></a>
3535
{% else %}

0 commit comments

Comments
 (0)