-
Notifications
You must be signed in to change notification settings - Fork 290
/
resources.html
57 lines (51 loc) · 1.89 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
---
layout: default
title: Resources
permalink: resources/
body-class: resources
background-class: resources-background
redirect_from: /support/
---
{% assign resources = site.resources | sort: 'order' %}
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Resources</h1>
<p class="lead">Explore educational courses, get your questions answered, and join the discussion with other PyTorch developers.</p>
</div>
</div>
<div class="main-content-wrapper">
<div class="main-content">
<div class="container">
<div class="row resources">
{% for resource in resources %}
{% assign card_title = resource.title | split: ' ' %}
{% if resource.show-pytorch-logo == true %}
{% assign resource_class = "pytorch-resource" %}
{% else %}
{% assign resource_class = resource.class %}
{% endif %}
<div class="col-md-4">
<div class="card resource-card {{ resource_class }}">
<!-- Cards with the pytorch-resource class also have a pytorch-discuss class.
These two classes along with the discuss class allow us to stylize the second word in the card header so that it features orange text.
-->
{% if resource.class == "pytorch-resource" %}
<a href="{{ resource.link }}" class="pytorch-discuss" target="_blank">
<div class="card-body">
<h4>{{ card_title[0] }}<span class="discuss">{{ card_title[1] }}</span></h4>
{% else %}
<a href="{{ resource.link }}" target="_blank">
<div class="card-body">
<h4>{{ resource.title }}</h4>
{% endif %}
<p class="card-summary">{{ resource.summary }}</p>
</div>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>