File tree 7 files changed +58
-39
lines changed
7 files changed +58
-39
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ external_urls:
26
26
discuss : https://discuss.pytorch.org
27
27
tutorials : https://pytorch.org/tutorials
28
28
previous_pytorch_versions : https://pytorch.org/previous-versions/
29
+ udacity_courses : https://pytorch.org
29
30
livereload : true
30
31
markdown : kramdown
31
32
highlighter : rouge
@@ -47,6 +48,8 @@ collections:
47
48
output : false
48
49
features :
49
50
output : false
51
+ courses :
52
+ output : false
50
53
51
54
pagination :
52
55
enabled : true
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+ ---
Original file line number Diff line number Diff line change
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
+ ---
Original file line number Diff line number Diff line change
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
+ ---
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -55,45 +55,6 @@ <h1>Get<br /> Started</h1>
55
55
</ div >
56
56
</ div>
57
57
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
-
97
58
< script type ="text/javascript ">
98
59
// This page includes content that is hidden from view until clicked in the article menu.
99
60
// This ensures that named links display the correct content on page load
You can’t perform that action at this time.
0 commit comments