-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathresources.html
165 lines (138 loc) · 4.63 KB
/
resources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
layout: default
title: Resources
permalink: resources/
---
{% assign articles = site.data.resources.articles %}
{% assign books = site.data.resources.books %}
{% assign courses = site.data.resources.courses %}
{% assign guides = site.data.resources.guides %}
{% assign videos = site.data.resources.videos %}
{% assign slides = site.data.resources.slides %}
<div class="container">
<h1>Curated Resources</h1>
<div class="resources-section">
<h2>Articles and Blog posts</h2>
<div class="resources">
{% for article in articles %}
<div class="resource">
<div class="title">
{% if article.url %}
<a href="{{ article.url }}">{{ article.title }}</a>
{% endif %}
{% if article.parts %}
{% for part in article.parts %}
{% if forloop.first %}
<a href="{{ part.url }}">{{ article.title }} [{{ part.title }}]</a>
{% else %}
-- <a href="{{ part.url }}">[{{ part.title }}]</a>
{% endif %}
{% endfor %}
{% endif %}
</div>
<div class="resource-metadata">
{% if article.author %}by <span class="author">{{ article.author }}</span>{% endif %}
{% if article.date %}({{ article.date }}){% endif %}
</div>
<div class="comments">
{% if article.comments %}{{ article.comments | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
<h2>Books</h2>
<div class="resources">
{% for book in books %}
<div class="resource">
<div class="title">
{% if book.url %}
<a href="{{ book.url }}">{{ book.title }}</a>
{% endif %}
</div>
<div class="resource-metadata">
{% if book.author %}by <span class="author">{{ book.author }}</span>{% endif %}
{% if book.date %}({{ book.publisher }}, {{ book.date }}){% endif %}
</div>
<div class="comments">
{% if book.comments %}{{ book.comments | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
<h2>Courses</h2>
<div class="resources">
{% for course in courses %}
<div class="resource">
<div class="title">
{% if course.url %}
<a href="{{ course.url }}">{{ course.title }}</a>
{% endif %}
</div>
<div class="resource-metadata">
{% if course.author %}by <span class="author">{{ course.author }}</span>{% endif %}
{% if course.platform %}(on {{ course.platform }}, {{ course.length }}){% endif %}
</div>
<div class="comments">
{% if course.description %}{{ course.description | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
<h2>Guides</h2>
<div class="resources">
{% for guide in guides %}
<div class="resource">
<div class="title">
{% if guide.url %}
<a href="{{ guide.url }}">{{ guide.title }}</a>
{% endif %}
</div>
<div class="resource-metadata">
{% if guide.author %}by <span class="author">{{ guide.author }}</span>{% endif %}
</div>
<div class="comments">
{% if guide.description %}{{ guide.description | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
<h2>Videos</h2>
<div class="resources">
{% for video in videos %}
<div class="resource">
<div class="title">
{% if video.url %}
<a href="{{ video.url }}">{{ video.title }}</a>
{% endif %}
</div>
<div class="resource-metadata">
{% if video.author %}by <span class="author">{{ video.author }}</span>{% endif %}
{% if video.context %}({{ video.context }}){% endif %}
</div>
<div class="comments">
{% if video.description %}{{ video.description | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
<h2>Slides</h2>
<div class="resources">
{% for deck in slides %}
<div class="resource">
<div class="title">
{% if deck.url %}
<a href="{{ deck.url }}">{{ deck.title }}</a>
{% endif %}
</div>
<div class="resource-metadata">
{% if deck.author %}by <span class="author">{{ deck.author }}</span>{% endif %}
{% if deck.context %}({{ deck.context }}){% endif %}
</div>
<div class="comments">
{% if deck.description %}{{ deck.description | markdownify }}{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>