Skip to content
Draft
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 @@ -4,6 +4,7 @@ gem "jekyll", "~> 4.2.0"
gem "minima", "~> 2.5"
gem 'jekyll-sitemap', "~> 1.4.0"
gem 'jekyll-feed', "~> 0.13.0"
gem 'jekyll-multiple-languages-plugin', "~> 1.8"

platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
Expand Down
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ url: "https://lodz.hackerspace.pl"
plugins:
- jekyll-sitemap
- jekyll-feed
- jekyll-multiple-languages-plugin

# multi language settings
languages: ["pl", "en"]
default_locale_in_subfolder: false

feed:
excerpt_only: true
Expand Down
2 changes: 1 addition & 1 deletion _data/live_meetings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"date": "24-02-2025 19:30", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/306236706/", "location": "Hakierspejs"}
{"date": "12-03-2025 19:00", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/pkncqtyhcfbqb/", "location": "Hakierspejs"}
2 changes: 1 addition & 1 deletion _data/meetings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"date": "24-02-2025 19:30", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/306236706/", "location": "Hakierspejs"}
{"date": "12-03-2025 19:00", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/pkncqtyhcfbqb/", "location": "Hakierspejs"}
10 changes: 10 additions & 0 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
header:
subtitle: Building a Hackerspace in Lodz. Looking for members!

titles:
about: About us
guilds: Guilds
faq: FAQ
sign-up: Sign up
values: Our values
more: More
11 changes: 11 additions & 0 deletions _i18n/pl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
header:
subtitle: Budujemy Hackerspace w Łodzi. Szukamy ludzi.

titles:
index: Strona główna
about: O nas
guilds: Gildie
faq: FAQ
sign-up: Zapisz się
values: Wartości HSŁ
more: Więcej
9 changes: 7 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
<meta property="og:image" content="{{ page.image }}" />
{% else %}
<meta property="og:image" content="https://hssn.hs-ldz.pl/img/16604100f22b86378997ad2d2571714c9fb3764f.png" />
{% endif %}
{% endif %}

{% assign title = page.title %}
{% if site.lang == "en" and page.title_en %}
{% assign title = page.title_en %}
{% endif %}

<link rel="stylesheet" href="{{ "/assets/styles/awsm.min.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/styles/custom.css" | relative_url }}">
<link xmlns="http://www.w3.org/1999/xhtml" rel="shortcut icon" href="{{ "/assets/logo.svg" | relative_url }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site.title }} | {{ page.title }}</title>
<title>{{ site.title }} | {{ title }}</title>
<script defer src="{{ "/assets/js/isitopen.js" | relative_url }}"></script>
<script defer src="{{ "/assets/js/nav.js" | relative_url }}"></script>
<meta name="google-site-verification" content="3PXyN3U9IxI2r3zH_lcLDYBcN686Z37l3JwcHYs6Vgg" />
43 changes: 36 additions & 7 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,45 @@
</div>
<div class="header-title">
<h1>Hakierspejs Łódź 🦄</h1>
<p>Budujemy Hackerspace w Łodzi. Szukamy ludzi.</p>
<p>{% t header.subtitle %}</p>
</div>
<div class="language-selector">
{% if site.lang == "pl" %}
<div class="flag-pl"></div>
{% capture link %}{{ site.baseurl_root }}/en{{ page.url }}{% endcapture %}
<a href="{{ link }}" class="flag-gb"></a>
{% elsif site.lang == "en" %}
{% capture link %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
<a href="{{ link }}" class="flag-pl"></a>
<div class="flag-gb"></div>
{% endif %}
</div>
</div>
<nav>
<ul>
<li>{% include icons/people.html %}<a href="{{ "/index.html" | relative_url }}">O nas</a></li>
<li>{% include icons/guilds.html %}<a href="{{ "/guilds.html" | relative_url }}">Gildie</a></li>
<li>{% include icons/faq.html %}<a href="{{ "/faq.html" | relative_url }}">FAQ</a></li>
<li>{% include icons/person-circle.html %}<a href="{{ "/apply.html" | relative_url }}">Zapisz się</a></li>
<li>{% include icons/building.html %}<a href="{{ "/ourvalues.html" | relative_url }}">Wartości HSŁ</a></li>
<li>{% include icons/more.html %}<a href="{{ "/more" | relative_url }}">Więcej</a></li>
<li>
{% include icons/people.html %}
<a href="{{ "/index.html" | | prepend: site.baseurl }}">{% t titles.about %}</a>
</li>
<li>
{% include icons/guilds.html %}
<a href="{{ "/guilds.html" | | prepend: site.baseurl }}">{% t titles.guilds %}</a>
</li>
<li>
{% include icons/faq.html %}
<a href="{{ "/faq.html" | | prepend: site.baseurl }}">{% t titles.faq %}</a>
</li>
<li>
{% include icons/person-circle.html %}
<a href="{{ "/apply.html" | | prepend: site.baseurl }}">{% t titles.sign-up %}</a>
</li>
<li>
{% include icons/building.html %}
<a href="{{ "/ourvalues.html" | | prepend: site.baseurl }}">{% t titles.values %}</a>
</li>
<li>
{% include icons/more.html %}
<a href="{{ "/more" | | prepend: site.baseurl }}">{% t titles.more %}</a>
</li>
</ul>
</nav>
2 changes: 1 addition & 1 deletion api_live_meetings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"date": "24-02-2025 19:30", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/306236706/", "location": "Hakierspejs"}
{"date": "12-03-2025 19:00", "url": "https://www.meetup.com/hakierspejs-%C5%82od%C5%BA/events/pkncqtyhcfbqb/", "location": "Hakierspejs"}
3 changes: 2 additions & 1 deletion apply.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Zapisz się!
title: Zapisz się
title_en: Sign up
layout: default
---

Expand Down
1 change: 1 addition & 0 deletions assets/images/flags/gb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/flags/pl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 35 additions & 1 deletion assets/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ progress:not([value])::-moz-progress-bar {
align-self: flex-end;
max-width: 5em;
max-height: 5em;
padding-left:: 0.25em;
padding-left: 0.25em;
}

.header-title {
align-self: flex-end;
flex-grow: 1;
}

.bi {
Expand All @@ -117,6 +118,13 @@ nav ul li .bi {
color: var(--dark-color);
}

nav ul li {
display: flex;
flex-direction: row;
align-items: center;
gap: 4px;
}

/* Horizontal navigation on big screens. */
nav ul {
display: flex;
Expand Down Expand Up @@ -261,3 +269,29 @@ p {
{
border: none;
}

.language-selector {
display: flex;
flex-direction: column;
gap: 8px;
}

.language-selector a, .language-selector div {
display: flex;
width: 32px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
}

.language-selector a {
opacity: 0.6;
}

.language-selector .flag-gb {
background-image: url("/assets/images/flags/gb.svg");
}

.language-selector .flag-pl {
background-image: url("/assets/images/flags/pl.svg");
}
1 change: 1 addition & 0 deletions blog.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Blog
title_en: Blog
layout: default
---
<style>
Expand Down
2 changes: 1 addition & 1 deletion faq.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: FAQ
title: titles.faq
layout: default
---

Expand Down
1 change: 1 addition & 0 deletions guilds.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Gildie
title_en: Guilds
layout: default
---

Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Strona Główna
title: Strona główna
title_en: Home
layout: default
---
<article>
Expand Down
1 change: 1 addition & 0 deletions manifesto.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Apel
title_en: Manifesto
layout: default
---
<article>
Expand Down
1 change: 1 addition & 0 deletions more.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Więcej
title_en: More
layout: default
---
<style>
Expand Down