Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add events #360

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gem "jekyll", "~> 4.3"
gem 'deep_merge'
# gem 'pry'

gem 'tzinfo'
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.11"
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ DEPENDENCIES
jekyll-feed (~> 0.11)
jekyll-multiple-languages-plugin!
rake (~> 13.1)
tzinfo
webrick (~> 1.7)

RUBY VERSION
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Open a browser to localhost:8080

## DecapCMS

In addition to GitHub, you can update the website via [DecapCMS](https://decapcms.org/) for example adding new blog posts by going to [/admin](https://techworkerscoalition.org/admin) interface.
In addition to GitHub, you can update the website via [DecapCMS](https://decapcms.org/) for example adding new blog posts and events by going to [/admin](https://techworkerscoalition.org/admin) interface. For local development, visit this [tutorial](https://decapcms.org/docs/working-with-a-local-git-repository/) (run `npx decap-server` from a different shell)

## Add your city

Expand Down
27 changes: 21 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ description: A coalition of tech industry workers, labor organizers, community o
url: "https://techworkerscoalition.org" # the subpath of your site, e.g. /blog
baseurl: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: techworkersco
timezone: "Europe/Berlin"

# Build settings
plugins:
Expand All @@ -31,33 +32,45 @@ feed:

jekyll_get_data:
- data: collective-actions
url: "https://raw.githubusercontent.com/collective-action/tech/master/actions.json"
url: https://raw.githubusercontent.com/collective-action/tech/master/actions.json
- data: berlin_press
url: "https://raw.githubusercontent.com/techworkersco/twc-site-berlin/develop/_data/press.yml"
url: https://raw.githubusercontent.com/techworkersco/twc-site-berlin/develop/_data/press.yml
- data: newsletter
url: "https://news.techworkerscoalition.org/feed.json"

url: https://news.techworkerscoalition.org/feed.json
- data: berlin_events
url: https://techworkersberlin.com/events.yml
exclude:
- .jekyll-cache/
# also update index.md
languages: ["en", "es", "fr", "it", "pt", "ru"]

defaults:
- scope:
path: ""
values:
# unless languages: ["bl" "ah"] is included, english is only/default frontmatter language
languages: ["en"]
languages: ["en"]
- scope:
type: "events"
values:
layout: "event"

permalink: pretty
future: true
collections:
blog:
output: true
permalink: blog/:title
events:
output: true
permalink: events/:title

exclude_from_localizations: ["assets", "admin"]
header_links:
- url: /subscribe
text: Join
text: Join
- url: /events
text: Events
- url: /blog
text: Blog
- url: /chapters
Expand All @@ -66,6 +79,8 @@ header_links:
links:
- url: /subscribe
text: Join
- url: /events
text: Events
- url: /blog
text: Blog
- url: /chapters
Expand Down
15 changes: 15 additions & 0 deletions _events/online-book-review-tech-workers-guide-to-unions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Online book review: Tech Worker's Guide to Unions "
date: 2024-03-26T18:00:00.000Z
time_zones:
- US/Pacific
- US/Eastern
- Europe/Berlin
location: [Online]
hide_form: false
---
In this 90 minute online-call, you will learn more about "[The Tech Worker's Guide to Unions](https://www.amazon.de/Tech-Workers-Guide-Unions/dp/9083386945)" book by Janneke Parrish, about their experiences organizing [\#AppleTogether](https://appletogether.org/) and supporting other tech companies in workplace organizing.

In 2021, Apple fired Janneke for their work #AppleToo, a movement that brought the discrimination, harassment, and retaliation that many Apple workers were experiencing to light. Since then, they've continued to found the solidarity union #AppleTogether which connects Apple organizing initiatives around the world together.

Whether you're newly interested in unionizing, or a veteran organizer, this online call is for you! This talk will be streamed and recorded. Detailed to be announced! [Mandatory registration over Zoom](https://us02web.zoom.us/meeting/register/tZcpd--sqzkqHtUUvK-u-vexE6hsAby7T1rs)
3 changes: 3 additions & 0 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ home:
description: |
<p>We’re also happy to chat, answer any questions you might have, or hear about any social justice efforts in which you need a partner. <a href="mailto:hello@techworkerscoalition.org">Send us an email.</a></p>
<p>If you’re a member of the press, please get in touch with us through <a href="mailto:press@techworkerscoalition.org">press@techworkerscoalition.org.</a></p>
events:
title: Recent events
more: Find more events

job_board:
title: "Job Board 🌹"
Expand Down
3 changes: 1 addition & 2 deletions _includes/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
>{{ post.date | date_to_string }}</time>
</section>
{% if limit %}<h3{% else %}<h2{% endif %}
class="event-card__title"
id="news-{{ post.title | slugify }}"
>
<a href="{{ post.url }}" class="event-card__link">{{ post.title }}</a>
<a href="{{ post.url }}">{{ post.title }}</a>
{% if limit %}</h3>{% else %}</h2>{% endif %}
</article>
</li>
Expand Down
36 changes: 36 additions & 0 deletions _includes/event-card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

<article class="event-card marg-b-4 flex items-center">
<div class="bg-black circ lh-1">
<svg
focusable="false"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 24 24"
class="event-card__icon card-icon"
style="enable-background:new 0 0 24 24;"
xml:space="preserve"
>
<path d="M20,3h-1V1h-2v2H7V1H5v2H4C2.9,3,2,3.9,2,5v16c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V5C22,3.9,21.1,3,20,3z M20,21H4V8h16V21z"/>
<text transform="matrix(1 0 0 1 5.3281 19.1641)" class="st0 st1">{{ event.date | date: "%d" }}</text>
</svg>
</div>
<div
class="event-card__info-column l-stack -vertical"
style="--stack-spacing: 0.25rem"
>
<time
datetime="{{ event.date }}"
><b>{{ event.date | all_time_zones: event.time_zones }}</b> {{ event.date | date: "%A, %d %b %Y"}}</time>
{% if include.limit %}
<h3>
<a href="{{ event.url }}">{{ event.title }}</a>
</h3>
{% else %}
<h2>
<a href="{{ event.url }}">{{ event.title }}</a>
</h2>
{% endif %}
</div>
</article>
23 changes: 23 additions & 0 deletions _includes/events.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% unless page.permalink == "/events" %}
<a href="/events">{% t home.events.more %}</a>
{% endunless %}
{% assign berlin_events = site.data.berlin_events %}
{% assign events = site.events | concat: berlin_events | sort: 'date' | filter_tags: include.tags | reverse %}
{% assign future_events = events | where_exp: "event", "event.date >= site.time" %}

{% if page.permalink == "/events" %}
<h1>Tech Worker Events</h1>
Explore all <b>{{events.size}}</b> public events we organized
{% else %}
<a href="/events">{% t home.events.more %}</a>
{% endif %}

{% if include.limit and future_events.size > 0 %}
{% for event in future_events reversed limit: include.limit %}
{% include event-card.html %}
{% endfor %}
{% else %}
{% for event in events limit: include.limit %}
{% include event-card.html %}
{% endfor %}
{% endif %}
Loading