Skip to content

Commit 5bef3a1

Browse files
authored
Merge pull request #2 from OpenRailAssociation/hugo-init
2 parents f8cf3b9 + 97e2e33 commit 5bef3a1

171 files changed

Lines changed: 20103 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
# Set environment variables which will be used multiple times in the workflow
2525
env:
26-
# hugo_version: "0.147.9"
26+
hugo_version: "0.154.2"
2727
source_dir: "."
2828
artifact_name: "website"
2929
condition_production: ${{ github.ref == 'refs/heads/main' }}
@@ -39,19 +39,19 @@ jobs:
3939
submodules: recursive # Get submodules
4040
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
4141

42-
# - name: Setup Hugo
43-
# uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
44-
# with:
45-
# hugo-version: ${{ env.hugo_version }}
46-
# extended: true
42+
- name: Setup Hugo
43+
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
44+
with:
45+
hugo-version: ${{ env.hugo_version }}
46+
extended: true
4747

48-
# - name: Build production site
49-
# run: hugo -s ${{ env.source_dir }}
50-
# if: env.condition_production == 'true'
48+
- name: Build production site
49+
run: hugo -s ${{ env.source_dir }}
50+
if: env.condition_production == 'true'
5151

52-
# - name: Build preview site
53-
# run: hugo -s ${{ env.source_dir }} -e staging --buildFuture --buildDrafts -b ${{ vars.WEB_DOMAIN_PREVIEW }}/${{ env.dir_preview_subdir }}/
54-
# if: github.event.pull_request
52+
- name: Build preview site
53+
run: hugo -s ${{ env.source_dir }} -e staging --buildFuture --buildDrafts -b ${{ vars.WEB_DOMAIN_PREVIEW }}/${{ env.dir_preview_subdir }}/
54+
if: github.event.pull_request
5555

5656
- name: Upload artifact
5757
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/hugo
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
3+
4+
### Hugo ###
5+
# Generated files by hugo
6+
/public/
7+
/resources/_gen/
8+
/assets/jsconfig.json
9+
hugo_stats.json
10+
11+
# Executable may be added to repository
12+
hugo.exe
13+
hugo.darwin
14+
hugo.linux
15+
16+
# Temporary lock file while building
17+
/.hugo_build.lock
18+
19+
# End of https://www.toptal.com/developers/gitignore/api/hugo
20+
21+
# lychee
22+
.lycheecache

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "themes/hugo-cloak-email"]
2+
path = themes/hugo-cloak-email
3+
url = https://github.com/martignoni/hugo-cloak-email
4+
[submodule "themes/hugomod-images"]
5+
path = themes/hugomod-images
6+
url = https://github.com/hugomods/images

config.toml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
baseURL = "https://hack4rail.org" # may be changed when deploying to preview environments
2+
title = "Hack4Rail"
3+
4+
theme = ["hack4rail", "hugomod-images", "hugo-cloak-email"]
5+
# Site languages. Available translations in the theme's `/i18n` directory.
6+
languageCode = "en"
7+
defaultContentLanguage = "en"
8+
9+
# number of words of summarized post content (default 70)
10+
summaryLength = 70
11+
12+
# not pluralize title pages by default
13+
pluralizelisttitles = false
14+
15+
disableKinds = ["taxonomy", "rss"]
16+
17+
# Define the number of posts per page
18+
[pagination]
19+
pagerSize = 10
20+
21+
# English quotation marks
22+
[markup.goldmark.extensions.typographer]
23+
leftDoubleQuote = ''
24+
rightDoubleQuote = ''
25+
26+
[menu]
27+
# Main menu
28+
[[menu.main]]
29+
name = "Organization"
30+
identifier = "organization"
31+
weight = 30
32+
url = ""
33+
34+
[params]
35+
original_url = "https://hack4rail.org" # always stays the same
36+
author = "Hack4Rail Team"
37+
defaultKeywords = ["hack4rail", "hackathon", "railway", "rail", "opensource", "community", "developers", "software", "openrail"]
38+
mainSections = ["news", "challenges"]
39+
# eventSections = ["events"]
40+
defaultDescription = "Hack4Rail - The international hackathon for innovation in the railway sector"
41+
42+
# Social media
43+
facebook_site = "" # the Facebook handle of your site ('https://www.facebook.com/HANDLE')
44+
twitter_site = "" # the Twitter handle of your site (without the '@')
45+
default_sharing_image = "images/logo.png"
46+
47+
# Format dates with Go's time formatting
48+
date_format = "2 January 2006"
49+
50+
dropdown_mouse_over = false
51+
52+
disabled_logo = false
53+
logo_text = "Hack4Rail"
54+
55+
logo_xs = "images/logo.png"
56+
logo_sm = "images/logo.png"
57+
logo_md = "images/logo.png"
58+
logo_lg = "images/logo.png"
59+
60+
[permalinks]
61+
news = "/news/:2006/:slug/"
62+
challenges = "/challenges/:slug/"
63+
64+
# Enable or disable top bar with social icons
65+
[params.topbar]
66+
enable = false
67+
text = ""
68+
69+
# Enable and disable widgets for the right sidebar
70+
[params.widgets]
71+
categories = false
72+
tags = false
73+
search = false
74+
75+
[params.features]
76+
enable = true
77+
cols = 3 # Default: 3, Available values 2,3,4,6
78+
79+
[params.parallax1]
80+
enable = true
81+
background_image = "images/stock/brush-hand.jpg"
82+
image_crop = "1900x1000 Bottom"
83+
title = "\"Hack4Rail offers the best opportunity for folks in the railway sector to innovate and learn. I am amazed what can be achieved in just three days!\""
84+
subtitle = "*-- Max Mehl, Open Source at DB*"
85+
86+
# [params.events]
87+
# enable = true
88+
# title = "Events"
89+
# subtitle = ""
90+
# hide_summary = true
91+
# limit = 4
92+
93+
[params.footer.menu1]
94+
enable = true
95+
headline = "Preparation"
96+
97+
[params.footer.menu2]
98+
enable = true
99+
headline = "Participation"
100+
101+
[params.footer.recent_posts]
102+
enable = true
103+
headline = "Recent Updates"
104+
limit = 3
105+
sections = ["news"]
106+
107+
[params.footer.contact]
108+
enable = false
109+
address = """Hack4Rail HQ\\
110+
Hacker Street 42, 12345 Code City"""
111+
phone = "+49 123 4567890"
112+
email = "info@hack4rail.org"
113+
relurl = "contact"
114+
115+
116+
[params.footer]
117+
copyright = "Hack4Rail, CC-BY-SA 4.0"
118+
[[params.footer.links]]
119+
name = "Imprint"
120+
relurl = "imprint"
121+
[[params.footer.links]]
122+
name = "Credits"
123+
relurl = "credits"
124+
125+
[taxonomies]
126+
category = "categories"
127+
tag = "tags"
128+
author = "authors"
129+
130+
# Modules
131+
[module]
132+
[[module.mounts]]
133+
source = "themes/hack4rail/static/img"
134+
target = "assets/images"
135+
[[module.mounts]]
136+
source = "static/img"
137+
target = "assets/images"
138+
139+
[build]
140+
[[build.cacheBusters]]
141+
source = 'assets/scss/.*\.scss'
142+
target = 'css'

content/_index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Hack4Rail 2026
3+
related_pages:
4+
disable_for_section: true
5+
---
6+
7+
Welcome to **Hack4Rail**, the international hackathon dedicated to fostering innovation in the railway sector. Our mission is to bring together developers, designers, and railway enthusiasts from around the world to collaborate on cutting-edge solutions that can transform the industry.
8+
9+
At Hack4Rail, we believe in the power of open source and community-driven development. Participants work in teams to tackle real-world challenges faced by the railway industry, leveraging technology to create impactful solutions that enhance safety, efficiency, and user experience.
10+
11+
This website serves as a hub for all things Hack4Rail. Here, you can find information about upcoming events, past hackathons, challenges, and resources to help you get involved. Whether you're a seasoned developer or new to the world of railways, there's a place for you at Hack4Rail.
12+
13+
## Sub Headline
14+
15+
This is a perfect place to describe the event.

content/challenges/_index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Challenges
3+
menus:
4+
main:
5+
weight: 20
6+
footer2:
7+
weight: 10
8+
aliases: /challenges.html
9+
banner:
10+
image: images/stock/handshake.jpg
11+
processes:
12+
- "fill 1900x600"
13+
filter:
14+
- GaussianBlur: 2
15+
- Brightness: 0
16+
---
17+
18+
Challenges are specific problem statements or tasks presented to participants during the Hack4Rail hackathon. They are designed to inspire creativity, foster innovation, and encourage collaboration among attendees. Challenges can range from technical issues, such as developing new software solutions or improving existing systems, to broader topics like enhancing user experience or promoting sustainability in the railway sector.
19+
20+
If you are interested in proposing a challenge for the next Hack4Rail event, please reach out to us via our [contact page]({{< relurl "contact" >}}).
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Automating everything
3+
---
4+
5+
Trains? Automate!
6+
7+
Maintenance? Automate!
8+
9+
Getting coffee? Automate!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Reinventing the wheel
3+
---
4+
5+
The idea is to create something that has been existing since before 0AD.
6+
7+
Join me!

content/contact.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Contact
3+
menus:
4+
main:
5+
weight: 90
6+
footer1:
7+
weight: 30
8+
banner:
9+
image: images/stock/notebook.jpg
10+
processes:
11+
- "fill 1900x600 Center"
12+
filter:
13+
- GaussianBlur: 2
14+
- Brightness: -10
15+
---
16+
17+
If you have any questions, suggestions, or would like to get in touch with the Hack4Rail team, please feel free to reach out to us:
18+
19+
{{< cloakemail "hack4rail@openrailassociation.org" >}}

content/credits.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Credits"
3+
banner:
4+
image: images/stock/thumbsup.jpg
5+
processes:
6+
- resize 2000x
7+
- crop 2000x800 top
8+
filter:
9+
- GaussianBlur: 2
10+
- Brightness: -10
11+
sitemap:
12+
disable: true # default is false
13+
---
14+
15+
We thank the following authors and contributors, thanks to whom this website can exist in this form:
16+
17+
* Original design by [Bootstrapious](https://templatesherpa.com/templates/universal-business-e-commerce)
18+
* Porting of the design by [DevCows](https://github.com/devcows/hugo-universal-theme)
19+
* Various photographers whose images and illustrations are freely available on [Pexels](https://www.pexels.com/) and [Unsplash](https://unsplash.com/)

0 commit comments

Comments
 (0)