Skip to content

Commit 9d165f5

Browse files
patmellonbrsoff
authored andcommitted
[PYT-193] Update ecosystem detail layout (pytorch#52)
1 parent f9df40b commit 9d165f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_layouts/ecosystem_detail.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ <h3>Similar Projects</h3>
4444
{% for item in site.ecosystem limit:3 %}
4545
<div class="col-md-4">
4646
<div class="card ecosystem-card">
47-
<a href="{{ site.baseurl }}{{ item.url }}">
48-
<div class="card-body {{ item.slug }}">
47+
{% if item.external %}
48+
<a href="{{ item.link }}" target="_blank">
49+
{% else %}
50+
<a href="{{ site.baseurl }}{{ item.url }}">
51+
{% endif %}
52+
<div class="card-body {{ item.title | slugify }} {% if item.external %}external{% endif %}">
4953
<h4>{{ item.title }}</h4>
5054
<p class="card-summary">{{ item.summary }}</p>
5155
</div>

0 commit comments

Comments
 (0)