Skip to content

Commit 40852a0

Browse files
authored
Merge pull request #212 from germainelee/hack2025-patch-1
make the year dynamic in Hacktoberfest documentation
2 parents 9c735d0 + a5593a8 commit 40852a0

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

content/hacktoberfest.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ type: toc
77
---
88

99
<center>
10-
<a href="https://hacktoberfest.com">
11-
<img src="../images/hacktoberfest.png" alt="hacktoberfest 2024 logo" width="80%"/>
12-
</a>
10+
{{< hacktoberfest type="image" >}}
1311
</center>
1412

1513
Some of the information about Hacktoberfest was copied here from the official [Hacktoberfest website](https://hacktoberfest.com/participation/) and should be referenced for more information.
@@ -24,19 +22,14 @@ For the past 10 years, thousands of people—coders and non-coders alike—have
2422

2523
## What is Owncast?
2624

27-
Owncast is a single-user live streaming server with chat features that allows you to run your own live stream. It's volunteer run, donation funded, and 100% free and open source software that exists for the community. [See some examples in use](https://directory.owncast.online). If you're curious what some of the users have to say about the software and what they're doing with it, [here's some discussing why they like it](https://videos.owncast.online/v/GbUWuPQzFvN88SGuihfrS9).
25+
Owncast is a single-user live streaming server with chat features that allows you to run your own live stream. It's volunteer run, donation funded, and 100% free and open source software that exists for the community. [See some examples in use](https://owncast.directory). If you're curious what some of the users have to say about the software and what they're doing with it, [here's some discussing why they like it](https://videos.owncast.online/v/GbUWuPQzFvN88SGuihfrS9).
2826

2927
## What do you receive by contributing to Owncast during Hacktoberfest?
3028

3129
- You’ll unlock a digital badge when you register for Hacktoberfest, and level it up with each of your four pull/merge requests accepted during Hacktoberfest.
32-
- Quality contributions[^1] to Owncast will receive an **Owncast t-shirt**. If you feel like you have qualified for a shirt, please [register for your t-shirt here!](https://gabekangas.typeform.com/to/Wfx9UHVZ).
3330
- You get added to the Owncast list of contributors on the [Owncast website](https://owncast.online), [GitHub repository](https://github.com/owncast/owncast) **and** the contributors thank-you video on [Owncast TV](https://watch.owncast.online).
3431
- You take part in a **global event**, contribute to **a cool project**, and be a part of the **open source community**.
3532

36-
<div style="display: flex; flex-direction: row; justify-content: center">
37-
{{< figure src="../images/owncast-tshirt.png" caption="Owncast<br/>Contributor t-shirt" height="200px" >}}
38-
</div>
39-
4033
## Code Contributions
4134

4235
Visit our [Owncast contributor guide](https://owncast.online/contribute/) to learn how to get started with contributing to Owncast.
@@ -70,19 +63,15 @@ The Owncast project is always looking for ways to get in front of more people an
7063

7164
## Usage Contributions
7265

73-
If you've been thinking about trying Owncast for the first time but haven't found the right time to be inspired to try it out, **this is your chance**. If you spin up a new public Owncast server and list it on the [Owncast Directory](https://owncast.online/directory) during Hacktoberfest, you'll receive a t-shirt from us.
66+
If you've been thinking about trying Owncast for the first time but haven't found the right time to be inspired to try it out, **this is your chance**. If you spin up a new public Owncast server and list it on the [Owncast Directory](https://owncast.directory) during Hacktoberfest, you'll receive a t-shirt from us.
7467

7568
## Where to Begin
7669

7770
- Read the [Hacktoberfest Values](https://hacktoberfest.com/participation/#values).
78-
- Register for [Hacktoberfest 2024](https://hacktoberfest.com/participation/) starting September 26th.
71+
- {{< hacktoberfest type="registration" >}}
7972
- Read the Owncast [Contributor Guide](https://owncast.online/contribute/).
8073
- Visit the Owncast [Good first Issues](https://github.com/owncast/owncast/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) list to see what has been designated as a good place to start.
8174
- [Install your own instance](/quickstart) of Owncast in about a minute.
8275
- [Join our chat](https://owncast.rocket.chat) and introduce yourself.
8376

8477
See you soon!
85-
86-
---
87-
88-
[^1]: A quality contribution is generally seen as that needed to be completed, fixing a bug that was reported, writing useful documentation, creating content around Owncast, or performing some piece of work within the Owncast organization that previously was determined to be needed. Coming up with your own arbitrary ideas, fixing typos, or making up changes just for the sake of getting PRs merged in are not seen as a quality contribution.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{ $type := .Get "type" | default "year" }}
2+
{{ $currentYear := now.Year }}
3+
{{ if eq $type "image" }}
4+
<a href="https://hacktoberfest.com">
5+
<img src="../images/hacktoberfest.png" alt="hacktoberfest {{ $currentYear }} logo" width="80%"/>
6+
</a>
7+
{{ else if eq $type "registration" }}
8+
Register for <a href="https://hacktoberfest.com/participation/">Hacktoberfest {{ $currentYear }}</a> starting between late September and early October.
9+
{{ else if eq $type "year" }}
10+
{{ $currentYear }}
11+
{{ end }}

0 commit comments

Comments
 (0)