Skip to content

Commit e7c3ffb

Browse files
authored
[PYT-151] Wire up and temporarily hide Courses module (#46)
1 parent edd223b commit e7c3ffb

File tree

7 files changed

+58
-39
lines changed

7 files changed

+58
-39
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ external_urls:
2626
discuss: https://discuss.pytorch.org
2727
tutorials: https://pytorch.org/tutorials
2828
previous_pytorch_versions: https://pytorch.org/previous-versions/
29+
udacity_courses: https://pytorch.org
2930
livereload: true
3031
markdown: kramdown
3132
highlighter: rouge
@@ -47,6 +48,8 @@ collections:
4748
output: false
4849
features:
4950
output: false
51+
courses:
52+
output: false
5053

5154
pagination:
5255
enabled: true

_courses/course-1.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Course 1
3+
summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit
4+
thumbnail: http://via.placeholder.com/560x360/ffffff/d8d8d8
5+
link: https://pytorch.org
6+
order: 1
7+
---
8+

_courses/course-2.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Course 2
3+
summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit
4+
thumbnail: http://via.placeholder.com/560x360/ffffff/d8d8d8
5+
link: https://pytorch.org
6+
order: 2
7+
---

_courses/course-3.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Course 3
3+
summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit
4+
thumbnail: http://via.placeholder.com/560x360/ffffff/d8d8d8
5+
link: https://pytorch.org
6+
order: 3
7+
---

_courses/course-4.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Course 4
3+
summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit
4+
thumbnail: http://via.placeholder.com/560x360/ffffff/d8d8d8
5+
link: https://pytorch.org
6+
order: 4
7+
---
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<div class="container-fluid article-page-module">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-md-12">
5+
<h3>Educational Courses</h3>
6+
<a href="{{ site.external_urls.udacity_courses }}" class="btn btn-lg with-right-arrow module-button" target="_blank">
7+
See all Courses
8+
</a>
9+
</div>
10+
</div>
11+
12+
<div class="row module-content-wrapper">
13+
{% assign courses = site.courses | sort: 'order' %}
14+
15+
{% for course in courses limit: 4 %}
16+
<div class="col-md-3">
17+
<a href="{{ course.link }}" target="_blank">
18+
<img src="{{ course.thumbnail }}" />
19+
<h5>{{ course.title }}</h5>
20+
<p>{{ course.summary }}</p>
21+
</a>
22+
</div>
23+
{% endfor %}
24+
</div>
25+
</div>
26+
</div>

get-started.html

-39
Original file line numberDiff line numberDiff line change
@@ -55,45 +55,6 @@ <h1>Get<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Started</h1>
5555
</div>
5656
</div>
5757

58-
<div class="container-fluid article-page-module">
59-
<div class="container">
60-
<div class="row">
61-
<div class="col-md-12">
62-
<h3>Educational Courses</h3>
63-
<a href="#" class="btn btn-lg with-right-arrow module-button">
64-
See all Courses
65-
</a>
66-
</div>
67-
</div>
68-
69-
<div class="row module-content-wrapper">
70-
<div class="col-md-3">
71-
<img src="http://via.placeholder.com/560x360/ffffff/d8d8d8" />
72-
<h5>Course Name</h5>
73-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
74-
</div>
75-
76-
<div class="col-md-3">
77-
<img src="http://via.placeholder.com/560x360/ffffff/d8d8d8" />
78-
<h5>Course Name</h5>
79-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
80-
</div>
81-
82-
<div class="col-md-3">
83-
<img src="http://via.placeholder.com/560x360/ffffff/d8d8d8" />
84-
<h5>Course Name</h5>
85-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
86-
</div>
87-
88-
<div class="col-md-3">
89-
<img src="http://via.placeholder.com/560x360/ffffff/d8d8d8" />
90-
<h5>Course Name</h5>
91-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
92-
</div>
93-
</div>
94-
</div>
95-
</div>
96-
9758
<script type="text/javascript">
9859
// This page includes content that is hidden from view until clicked in the article menu.
9960
// This ensures that named links display the correct content on page load

0 commit comments

Comments
 (0)