Skip to content

Commit a03fa17

Browse files
committed
Add: fall festival landing and past and future
1 parent 34a7557 commit a03fa17

File tree

3 files changed

+92
-2
lines changed

3 files changed

+92
-2
lines changed

_layouts/posts_events.html

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,45 @@
55

66
{{ content }}
77

8+
9+
<h2>Upcoming events</h2>
10+
{% assign allEvents = site.posts
11+
| where_exp: "item", "item.hidden != true"
12+
| where_exp: "item", "item.categories contains 'events'"
13+
%}
14+
15+
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
16+
17+
{% for event in allEvents %}
18+
19+
{% capture posttime %}{{event.event_date | date: '%s'}}{% endcapture %}
20+
21+
{% if posttime > nowunix %}
22+
<div markdown="1">
23+
<h3>{{ event.title }}</h3>
24+
<p>{{ event.excerpt }} </p>
25+
<ul>
26+
<li> <b>Event Date:</b> {{ event.event_date }} </li>
27+
<li> <b>Cost:</b> {{ event.cost }} </li>
28+
<li> <b>Location:</b> {{ event.cost }} </li>
29+
</ul>
30+
Learn more.
31+
</div>
32+
{% endif %}
33+
34+
{% endfor %}
35+
36+
37+
<h2>Past events</h2>
38+
839
<ul class="taxonomy__index">
940
{% assign eventsInYear = site.posts
1041
| where_exp: "item", "item.hidden != true"
1142
| where_exp: "item", "item.categories contains 'events'"
1243
| group_by_exp: 'post', 'post.date | date: "%Y"'
1344
%}
1445
{% for year in eventsInYear %}
46+
1547
<li>
1648
<a href="#{{ year.name }}">
1749
<strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
@@ -32,7 +64,10 @@
3264
<h2 class="archive__subtitle">{{ year.name }}</h2>
3365
<div class="blog__grid">
3466
{% for post in year.items %}
35-
{% include archive-cards.html %}
67+
{% capture posttime %}{{post.event_date | date: '%s'}}{% endcapture %}
68+
{% if posttime < nowunix %}
69+
{% include archive-cards.html %}
70+
{% endif %}
3671
{% endfor %}
3772
</div>
3873
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>

_pages/events.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ header:
1010
author_profile: false
1111
---
1212

13-
## pyOpenSci Events
13+
pyOpenSci runs free and paid training events that teach skills that scientists need
14+
to make their science more open and collaborative.
15+
16+
Note the past events counter currently is off by one.
1417

1518
<!--
1619
{% comment %}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
layout: single
3+
title: "pyOpenSci Fall Festival"
4+
excerpt: "More here"
5+
author:
6+
event_date: 2024-09-05
7+
permalink: /events/pyopensci-2024-fall-festival.html
8+
header:
9+
overlay_image: images/headers/scipy-2024-workshop.png
10+
overlay_filter: rgba(20, 13, 36, 0.8)
11+
categories:
12+
- events
13+
classes: wide
14+
toc: true
15+
comments: true
16+
---
17+
18+
## Create your first Python package: make your Python code easier to share and use
19+
20+
* **What:** A hands-on workshop, titled: [Create Your First Python Package: Make Your Python Code Easier to Share and Use](https://cfp.scipy.org/2024/talk/QT9GBY/)
21+
* **Where:** [SciPy 2024](https://www.scipy2024.scipy.org/), Ballroom B/C
22+
* **When:** Tuesday, July 9th, 2024, from 13:30--17:30 Pacific
23+
* Resources:
24+
* [**Workshop GitHub repository:**](https://github.com/pyOpenSci/code-to-module-workshop/)
25+
* [**pyOpenSci demo package:**](https://github.com/pyOpenSci/pyosPackage)
26+
27+
## Event overview
28+
29+
## How to enroll
30+
<figure>
31+
<a href="/images/blog/2024/april/pyos-code-to-mod.png">
32+
<img src="/images/blog/2024/april/pyos-code-to-mod.png" style="max-width:100%" alt="A line art robot standing in a field of purple flowers. The text reads 'From Python Code to Module, a live, online workshop with pyOpenSci, Thursday, April 25th 2024'.">
33+
</a>
34+
<figcaption>
35+
Tickets for our "From Python Code to Module" workshop are selling fast - get yours today!
36+
</figcaption>
37+
</figure>
38+
39+
If you’re interested in participating in our first paid, online, real-time training, sign up for our upcoming workshop: [“From Python Code to Module”](https://www.eventbrite.com/e/879586546037?aff=oddtdtcreator). This three hour course is intended for individuals who have experience writing Python code and Python functions, and will be taught by pyOpenSci’s Executive Director and founder, [Leah Wasser](https://github.com/lwasser). Leah has over 20 years of experience teaching data-intensive science with an emphasis helping scientists work through the pain points of working with different types of data, and puts an incredible amount of care and attention into ensuring each learner is successful in their educational goals. This is definitely a workshop you don’t want to miss!
40+
41+
In this workshop, Leah will cover:
42+
43+
- How to identify and explain the use of the basic components of a Python package: (a specific directory structure, an __init__.py file, a pyroject.toml file and some code).
44+
- Creating a basic python package that allows you to install your code into a local Python environment.
45+
- Installing your package in editable mode into a Python environment.
46+
47+
She will also briefly discuss how LLM’s can be used to support tasks such as documenting and formatting your code to improve usability and maintainability. While also considering the ethical and logistical challenges, pitfalls and concerns associated with using AI-based tools in software development.
48+
49+
The course will take place on Thursday, April 25th, from 10AM–1PM Mountain time, and use the Spatial Chat platform. Tickets are $10, and can be purchased on [the workshop’s Eventbrite page](https://www.eventbrite.com/e/from-python-code-to-module-tickets-879586546037?aff=oddtdtcreator). The class size is capped at 35, and tickets are selling fast–we hope to see you there!
50+
51+
## Connect with us!
52+
You can stay up-to-date with all things pyOpenSci by following us on [LinkedIn](https://www.linkedin.com/company/pyopensci) and [Fosstodon](https://fosstodon.org/@pyOpenSci), and you can connect with the broader pyOpenSci community on [our Discourse forum](https://pyopensci.discourse.group/). And if you’re interested in our weekly newsletter where we share news, blog posts, and monthly updates, [subscribe on LinkedIn](https://www.linkedin.com/newsletters/pyopensci-newsletter-7179551305344933888!)

0 commit comments

Comments
 (0)