Skip to content

Commit 38752d5

Browse files
Created inline_style_index.html include to use in index.html (to provide logic for upcoming event and image selection).
Changed link variable to meetup_link for posts. Created post for upcoming Pandas event in March. Added styles for upcoming section. Added images for pandas event from pandas subdomain.
1 parent e56a5d7 commit 38752d5

File tree

9 files changed

+469
-307
lines changed

9 files changed

+469
-307
lines changed

_includes/head.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
{{ site.title }}
1515
{% endif %}
1616
</title>
17-
</head>
18-
17+
</head>

_includes/inline_style_index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--Create array of future events-->
2+
{% assign upcoming_events = "" | split: ',' %}
3+
{% assign curDate = site.time | date: "%s" %}
4+
{% for post in site.posts %}
5+
{% assign postStartDate = post.date | date: "%s" %}
6+
{% if postStartDate >= curDate %}
7+
{% assign upcoming_events = upcoming_events | push: post %}
8+
{% endif %}
9+
{% endfor %}
10+
{% if upcoming_events.size > 0 %}
11+
{% assign upcoming_event = true %}
12+
{% assign post = upcoming_events | last %}
13+
14+
{% if post.image %}
15+
{% assign image = post.image %}
16+
{% else %}
17+
{% assign image = "static/images/events/default_image_800x800px.jpeg" %}
18+
{% endif %}
19+
{% endif %}
20+
<style>
21+
.upcoming__img-container {
22+
background-image: linear-gradient(to bottom right,
23+
rgba(7, 41, 72, 0.7),
24+
rgba(0, 0, 0, 0.7) 70%,
25+
rgba(0, 0, 0, 0.7) 100%),
26+
url("{{ site.baseurl }}/{{ image }}");
27+
}
28+
</style>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2 class="post__label">Date</h2>
6464
</div>
6565
<div class="row">
6666
<div class="post__button-col col-12">
67-
<a class="post__button btn btn-primary btn-lg text-center" href="{{ page.link }}">
67+
<a class="post__button btn btn-primary btn-lg text-center" href="{{ page.meetup_link }}">
6868
<i class="post__icon fab fa-meetup"></i>
6969
</a>
7070
</div>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: post
3+
title: Pandas documentation sprint (worldwide)
4+
project: Pandas
5+
project_description: Powerful Python data analysis toolkit
6+
date: 2018-03-10
7+
venue: Bloomberg (London)
8+
meetup_link: https://www.meetup.com/Python-Sprints/events/247097848/
9+
event_link: https://python-sprints.github.io/pandas/
10+
image: static/images/events/pandas_documentation_sprint_1280_720px.jpg
11+
project_logo: static/images/events/pandas_logo_donation.png
12+
13+
sponsors:
14+
- bloomberg
15+
- python_software_foundation
16+
---
17+
18+
Pandas is an open source Python library for data manipulation and analysis. Its popularity is skyrocketing, and it is becoming the de-facto standard for data science and data engineering. But the number of core developers and contributors did not grow as fast as its popularity, and things like the API documentation would benefit from some help.
19+
20+
This is why we are organizing a worldwide sprint, in which we plan to leave the API documentation for the Series and DataFrame classes in a perfect state.
21+
22+
The sprint will be divided in different chapters. Every chapter has a different website, usually a meetup.com group, where the sprint is coordinated. Find your chapter, and check there the venue, meeting time, etc.
23+
24+
Before the sprint, please make sure:
25+
26+
- Bring your own laptop
27+
- Set up your environment before the sprint
28+
- Make sure you RSVP for your chapter, number of attendees can be limited
29+
- Join the [Gitter channel](https://gitter.im/py-sprints/pandas-doc) of the sprint
30+
31+
## Visit the dedicated website for the event
32+
[https://python-sprints.github.io/pandas/](https://python-sprints.github.io/pandas/)
33+
34+
### Check for availability in other locations
35+
[Other locations worldwide](https://python-sprints.github.io/pandas/#location)

0 commit comments

Comments
 (0)