Skip to content

Commit 96f61d6

Browse files
author
Pat Mellon
committed
Add ability to specify which case studies appear on homepage
1 parent 7167985 commit 96f61d6

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

_case_studies/salesforce.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
layout: blog_detail
33
title: Salesforce
44
logo: assets/images/salesforce.png
5+
featured-home: true
6+
order: 1
57
---
68

79
Pushing the state of the art in NLP and Multi-task learning.

_case_studies/stanford-university.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
layout: blog_detail
33
title: Stanford University
44
logo: assets/images/stanford-university.png
5+
featured-home: true
6+
order: 2
57
---
68

79
Using PyTorch's flexibility to efficiently research new algorithmic approaches.

_case_studies/udacity.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
layout: blog_detail
33
title: Udacity
44
logo: assets/images/udacity.png
5+
featured-home: true
6+
order: 3
57
---
68

79
Educating the next wave of AI Innovators using PyTorch.

index.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ <h2>Companies &amp; Universities<br />Using PyTorch</h2>
143143
</a> -->
144144

145145
<div class="row university-testimonials-content">
146-
{% for item in site.case_studies limit:3 %}
146+
{% assign case_studies = site.case_studies | where: "featured-home", true | sort: "order" %}
147+
148+
{% for case_study in case_studies %}
147149
<div class="col-md-4">
148-
<img src="{{ site.baseurl }}/{{ item.logo }}" class="img-fluid" width="140">
149-
<p>{{ item.excerpt }}</p>
150+
<img src="{{ site.baseurl }}/{{ case_study.logo }}" class="img-fluid" width="140">
151+
<p>{{ case_study.excerpt }}</p>
150152
<!-- Temporarily hiding link out to case studies for time being -->
151153
<!-- <a href="{{ site.baseurl }}{{ item.url }}" class="btn btn-lg with-right-arrow">
152154
Read More

0 commit comments

Comments
 (0)