-
- {% for item in mainmenu %}
-
- - {{ item.name }} + {% for lang in site.languages %} +
- + {% if lang == site.active_lang %}{{ lang }} + {% else %} + {{ lang }} + {% endif %} - {% endfor %} + {% endfor %}
diff --git a/Gemfile b/Gemfile index c7dd12e..b98a778 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,4 @@ source "https://rubygems.org" gem "webrick", "~> 1.9" gem "jekyll", "~> 4.4" +gem 'jekyll-polyglot', '~> 1.9' diff --git a/_config.yml b/_config.yml index d1c8fb8..1da8906 100755 --- a/_config.yml +++ b/_config.yml @@ -23,6 +23,19 @@ sass: include: - .well-known +plugins: [jekyll-polyglot] + +# polyglot +languages: ["pl", "en"] +default_lang: "pl" +exclude_from_localization: ["images", "fonts", "sitemap", "docker", "vendor"] +url: https://hswro.org + +ourspace: + pl: "Siedziba" + en: "Our place" +# polyglot end + exclude: - Gemfile - Gemfile.lock diff --git a/_data/en/features.json b/_data/en/features.json new file mode 100644 index 0000000..16776f2 --- /dev/null +++ b/_data/en/features.json @@ -0,0 +1,56 @@ +[ + { + "title": "Main space", + "description": "Place for discussions and group work. Here all our meetings, workshops and lightning talks take place.", + "image": { + "url": "images/photos/openspace.jpg", + "width": 350, + "height": 350 + } + }, + { + "title": "Electronic Workshop", + "description": "Two workplaces with soldering and measurement equipment and a lot of components ready to be used in your projects.", + "image": { + "url": "images/photos/elektroniczny1.jpeg", + "width": 350, + "height": 350 + } + }, + { + "title": "Prototyping Workshop", + "description": "A lot of Prusa Research's 3D printers, a few 2D printers and a laser engraver.", + "image": { + "url": "images/photos/prusy.jpeg", + "width": 350, + "height": 350 + } + }, + { + "title": "Ham Radio Shack", + "description": "A ham radio corner with quite a selection of radios, from traditional HF radio, VHF/UHF FM radio and a few experimental ones like DV hotspot or Reticulum node.", + "image": { + "url": "images/photos/radiowy.jpg", + "width": 350, + "height": 350 + } + }, + { + "title": "Mechanical Workshop", + "description": "Equipped with a lot of useful tools that will allow you to build your own furniture or to make your pot into a sieve.", + "image": { + "url": "images/photos/warsztat.jpg", + "width": 350, + "height": 350 + } + }, + { + "title": "Welding room", + "description": "In the deepest nooks of Hackerspace.", + "image": { + "url": "images/photos/spawalnia.jpeg", + "width": 350, + "height": 350 + } + } +] diff --git a/_data/features.json b/_data/pl/features.json similarity index 100% rename from _data/features.json rename to _data/pl/features.json diff --git a/_includes/features.html b/_includes/features.html index 28dd01a..a9079ac 100644 --- a/_includes/features.html +++ b/_includes/features.html @@ -1,6 +1,6 @@ {% if site.data.features %} -