Skip to content

Commit d1e066a

Browse files
author
Brandon Green
committed
Update copy, add subcategories for events
1 parent 2edfb27 commit d1e066a

16 files changed

+91
-26
lines changed

_events/episode_17.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ category: live-stream
33
title: Episode 17
44
guest: Sergey Kolesnikov
55
company: Catalyst
6-
date: September 8. 2021
7-
time: 11 AM
6+
date: September 8, 2021
7+
time: 9 AM PST
88
poster: https://assets.pytorch.org/pted2021/posters/K2.png
9-
109
---

_events/episode_18.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
category: live-stream
3+
title: Episode 18
4+
guest: Victor Fomin
5+
company: PyTorch Ignite
6+
date: September 15, 2021
7+
time: 9 AM PST
8+
poster: https://assets.pytorch.org/pted2021/posters/G4.png
9+
---

_events/example_event.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
category: test
3+
title: Title of episode or webinar
4+
guest: Name of the guest
5+
company: Name of the company. This field only gets used for webinars
6+
date: August 4, 2021
7+
time: 1PM PST* If possible try to keep the format of the date and time the same as the example
8+
poster: Full URL to poster
9+
link: Full URL to video* Only used for webinars
10+
---

_events/pytorch_developer_day.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
category: event
33
title: PyTorch Developer Day
44
date: December 1, 2021
5+
header-image: assets/images/pytorch_developer_day_2021.png
56
---
67

78
The PyTorch Developer Day is a virtual event that brings together leading researchers and developers from the Machine Learning (ML) community to join a multiple set of talks covering new software releases, ways PyTorch is being used in academia and industry, and current trends in ML development. There will also be ample opportunity for networking with your peers and colleagues.

_events/pytorch_developer_day_2020.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
category: event
33
title: PyTorch Developer Day 2020
44
date: November 12, 2020
5+
header-image: assets/images/pytorch_developer_day_2020.png
56
---
67

78
The PyTorch Developer Day, a virtual event that brings together leading researchers and developers from the Machine Learning (ML) community to join a multiple set of talks covering new software releases, ways PyTorch is being used in academia and industry, ML development trends, a poster session, and many opportunities for networking.

_events/pytorch_ecosystem_day_2021.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
category: event
33
title: PyTorch Ecosystem Day 2021
44
date: April 21, 2021
5+
header-image: assets/images/pytorch_ecosystem_day_2021.jpeg
56
---
67

78
PyTorch Ecosystem Day, a virtual event designed for our ecosystem and industry communities to showcase their work and discover new opportunities to collaborate. Join us for discussions on new developments, trends, challenges, and best practices through keynotes, breakout sessions, and a unique networking opportunity hosted through Gather.Town.

_events/pytorch_summer_hackathon_2020.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
category: event
33
title: PyTorch Summer Hackathon 2020
44
date: June 22, 2020
5+
header-image: assets/images/summer_hackathon_2020.png
56
---
6-
7-
The PyTorch Summer Hackathon, a virtual event that invites developers to hack with the PyTorch community to build innovative, impactful models, applications and other projects that create positive impact for businesses or people. In it, developers are able to put their machine learning skills to the test in one of the following categories:<br>
8-
7+
The PyTorch Summer Hackathon, a virtual event that invites developers to hack with the PyTorch community to build innovative, impactful models, applications and other projects that create positive impact for businesses or people. In it, developers are able to put their machine learning skills to the test in one of the following categories:
98
- **PyTorch Developer Tools** : Tools or libraries designed to improve productivity and efficiency of PyTorch for researchers and developers.
109

1110
- **Web/Mobile Applications powered by PyTorch** : Applications with web/mobile interfaces and/or embedded devices powered by PyTorch.

_includes/live_events.html

+5-16
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,12 @@
44
</div>
55
<div class="col-md-9 event-info-container">
66
<div id="event" class="row main-content blog-detail-content contributor-sidebar">
7-
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
8-
{% assign events = site.events | where: "category", "event" %}
97
<div class="col-md-8 offset-md-1 container">
10-
{% for item in events | sort_natural: "date" %}
11-
<div id="{{ item.title | remove: " " }}" class="events-section col-md-8 offset-md-1 container">
12-
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
13-
{% assign events = site.events %}
14-
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
15-
<div class="event-item">
16-
<h2>{{ item.title }}</h2>
17-
<p>{{ item.content }}</p>
18-
{% if item.video %}
19-
{% include live_event_video.html %}
20-
{% endif %}
21-
</div>
22-
</div>
23-
{% endfor %}
8+
{% assign events = site.events | where: "category", "event" | sort_natural: "date" | reverse %}
9+
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
10+
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
11+
{% include upcoming-live-events.html %}
12+
{% include past-live-events.html %}
2413
</div>
2514
</div>
2615
</div>

_includes/past-live-events.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 class="event-label">Past Events</h1>
2+
{% assign events = site.events | where: "category", "event" | sort_natural: "date" | reverse %}
3+
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
4+
{% for item in events %}
5+
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
6+
{% if date <= now %}
7+
<div id="{{ item.title | remove: " " }}" class="live-events-section events-section col-md-8 offset-md-1 container">
8+
{% assign events = site.events %}
9+
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
10+
<div class="event-item">
11+
<h2>{{ item.title }}</h2>
12+
<img src="{{ site.baseurl }}/{{ item.header-image }}" class="img-fluid" width="100%">
13+
<p>{{ item.content | markdownify }}</p>
14+
{% if item.video %}
15+
{% include live_event_video.html %}
16+
{% endif %}
17+
</div>
18+
</div>
19+
{% endif %}
20+
{% endfor %}

_includes/upcoming-live-events.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 class="event-label">Upcoming Events</h1>
2+
{% assign events = site.events | where: "category", "event" | sort_natural: "date" | reverse %}
3+
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
4+
{% for item in events %}
5+
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
6+
{% if date >= now %}
7+
<div id="{{ item.title | remove: " " }}" class="live-events-section events-section col-md-8 offset-md-1 container">
8+
{% assign events = site.events %}
9+
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
10+
<div class="event-item">
11+
<h2>{{ item.title }}</h2>
12+
<img src="{{ site.baseurl }}/{{ item.header-image }}" class="img-fluid" width="100%">
13+
<p>{{ item.content | markdownify }}</p>
14+
{% if item.video %}
15+
{% include live_event_video.html %}
16+
{% endif %}
17+
</div>
18+
</div>
19+
{% endif %}
20+
{% endfor %}

_sass/events.scss

+19-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
.sticky-top {
1212
top: 15%;
1313
}
14+
.event-label {
15+
margin-bottom: 2rem;
16+
}
1417
}
1518
.live-event-container {
1619
display: flex;
@@ -23,9 +26,6 @@
2326
margin: 0 auto 0 auto;
2427
padding: 0 30px 43px 30px;
2528
width: 90%;
26-
@media (max-width: 767px) {
27-
width: 100%;
28-
}
2929
.event-item {
3030
padding-bottom: 3rem;
3131
border-bottom: 1px solid #D6D7D8;
@@ -40,6 +40,22 @@
4040
list-style: none;
4141
}
4242
}
43+
.live-events-section {
44+
p {
45+
font-size: 18px;
46+
margin-top: 2rem;
47+
}
48+
@include small-desktop {
49+
width: 100%;
50+
padding-left: 5px;
51+
padding-right: 5px;
52+
}
53+
@media (max-width: 767px) {
54+
width: 100%;
55+
padding-left: 5px;
56+
padding-right: 5px;
57+
}
58+
}
4359
}
4460
.ecosystem .events.main-content {
4561
padding-top: 0;
217 KB
Loading
233 KB
Loading
62 KB
Loading
6.63 KB
Loading

events.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 class="lead">Aenean rhoncus facilisis erat. Praesent fermentum tincidunt sol
2222
<nav class="navbar navbar-expand-lg navbar-light main-content-menu">
2323
<ul class="navbar-nav events-nav">
2424
<li id="events" class="nav-item nav-select">
25-
<span class="nav-link events-nav-link">Events</span>
25+
<span class="nav-link events-nav-link">Live Events</span>
2626
</li>
2727
<li id="live-streams" class="nav-item">
2828
<span class="nav-link events-nav-link">Webinars</span>

0 commit comments

Comments
 (0)