1
0
Fork 0

Initial Retro website version

This commit is contained in:
Michał Rudowicz 2026-02-21 22:09:18 +01:00
parent 8342399b50
commit 6ebf8ce809
5 changed files with 80 additions and 1 deletions

View File

@ -33,3 +33,28 @@ jobs:
image: curlimages/curl:8.17.0 image: curlimages/curl:8.17.0
steps: steps:
- run: curl -k -X POST ${{ secrets.RELOAD_PORTAINER_WEBHOOK }} - run: curl -k -X POST ${{ secrets.RELOAD_PORTAINER_WEBHOOK }}
build_website_retro:
runs-on: docker
container:
image: git.hswro.org/hswro/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- run: bundle exec jekyll build --config _config_retro.yml
- uses: actions/upload-artifact@v3
with:
compression-level: 9
include-hidden-files: true
name: generated-site
path: _site/
build_and_push_container_retro:
runs-on: docker
if: github.ref == 'refs/heads/main'
env:
REGISTRY_OWNER: hswro
container:
image: git.hswro.org/hswro/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- run: cd generated-site && buildah build --file ../docker/serve.Dockerfile -t retro-hswro-org:latest
- run: buildah push --creds ${REGISTRY_OWNER}:${{ secrets.PUSH_PACKAGES_KEY }} retro-hswro-org:latest "docker://git.hswro.org/${REGISTRY_OWNER}/hswro_org:latest"

41
_config_retro.yml Executable file
View File

@ -0,0 +1,41 @@
baseurl: '/'
permalink: pretty
title: 'Hackerspace Wrocław'
retro: true
logo: "images/hswro-logo.gif"
favicon: "images/favicon.svg"
sass:
style: compressed # possible values: nested expanded compact compressed
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
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- docker/
- LICENSE.md
- LICENSE
- README.md
- ORIGINAL_README.md

View File

@ -4,12 +4,18 @@
<div class="col-12"> <div class="col-12">
<div class="footer-inner"> <div class="footer-inner">
<h2 class="footer-title"> <h2 class="footer-title">
{% if site.retro %}
<div class="logo">
<a href="{{ site.baseurl }}"><img alt="{{ site.title }}" src="{{ site.logo | relative_url }}" /></a>
</div>
{% else %}
<div class="logo"> <div class="logo">
<a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_footer_width }}" height="{{ site.logo.desktop_footer_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_footer_width }}" height="{{ site.logo.desktop_footer_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
</div> </div>
<div class="logo-mobile"> <div class="logo-mobile">
<a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_footer_width }}" height="{{ site.logo.mobile_footer_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_footer_width }}" height="{{ site.logo.mobile_footer_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
</div> </div>
{% endif %}
</h2> </h2>
</div> </div>
</div> </div>

View File

@ -1,11 +1,18 @@
<div class='header'> <div class='header'>
<div class="container"> <div class="container">
{% if site.retro %}
<div class="logo">
<a href="{{ site.baseurl }}"><img alt="{{ site.title }}" src="{{ site.logo | relative_url }}" /></a>
</div>
{% else %}
<div class="logo"> <div class="logo">
<a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_width }}" height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.desktop_width }}" height="{{ site.logo.desktop_height }}" alt="{{ site.title }}" src="{{ site.logo.desktop | relative_url }}" /></a>
</div> </div>
<div class="logo-mobile"> <div class="logo-mobile">
<a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_width }}" height="{{ site.logo.mobile_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a> <a href="{{ site.baseurl }}"><img width="{{ site.logo.mobile_width }}" height="{{ site.logo.mobile_height }}" alt="{{ site.title }}" src="{{ site.logo.mobile | relative_url }}" /></a>
</div> </div>
{% endif %}
{% include main-menu.html %} {% include main-menu.html %}
</div> </div>
</div> </div>

BIN
images/hswro-logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B