Merge branch 'master' of https://git.microlab.space/kittv/web
continuous-integration/drone/push Build is passing Details

pull/44/head
lapej2ap 6 months ago
commit f30505e92a

@ -0,0 +1,22 @@
---
kind: pipeline
name: default
steps:
- name: build
image: ghcr.io/getzola/zola:v0.17.2
entrypoint: ["/bin/zola"]
command: ["build"]
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ["it-new.pedf.cuni.cz"]
user: drone
source: public/*
target: /home/www/web-kittv/
recursive: true
delete: true
environment:
RSYNC_KEY:
from_secret: ssh_private_key

@ -19,44 +19,6 @@ Pro testování a vývoji na lokálním web serveru stačí spustit `zola serve`
Pro vygenerování statického obsahu (pro nasazení na web server) je třeba spustit `zola build`. Výsledný obsah je uložen do složky `public`.
## Deployment
Z tohoto repozitáře (master branch) je nastaven automatický deployment na webserver. V tuto chvíli neprobíhá kontrola kódu a spoléhá se na to, že commitnutý kód je validní.
Repozitář má nastaven *post-receive* hook:
```sh
#!/bin/sh
nohup ash -c ' \
eval "$(ssh-agent -s)" && \
ssh-add -t 60 ~/.ssh/id_repository && \
ssh gitea@it-new.pedf.cuni.cz "/home/gitea/deployment.sh" && \
trap "ssh-agent -k" EXIT \
' > /dev/null 2>&1 &
echo "Automatic deployment started."
```
Ten na serveru spouští skript `deployment.sh`:
```sh
#!/bin/sh
eval "$(ssh-agent -s)" && \
ssh-add -t 60 ~/.ssh/id_deploy && \
git clone gitea@git.microlab.space:kittv/web.git kittv-web && \
zola -r ~/kittv-web/ build && \
rsync -r ~/kittv-web/public/* /home/www/web-kittv/ && \
trap "ssh-agent -k" EXIT
date >> ~/deployment_log.txt
rm -rf ~/kittv-web
```
Přístup do repozitáře je ověřován pomocí tzv. *deploy keys*, tedy SSH klíčem.
## Dokumentace
- [Zola](https://www.getzola.org/documentation/) (generátor)

@ -8,9 +8,13 @@ build_search_index = false
feed_filename = "atom.xml"
[markdown]
smart_punctuation = true
external_links_target_blank = true
external_links_no_follow = true
external_links_no_referrer = true

@ -0,0 +1,17 @@
+++
title = "Vánoční večírek"
date = 2023-12-02
[extra]
expiration = 2023-12-22
+++
Dovolujeme si Vás jménem naší [studentské oborové rady](https://sor.it.pedf.cuni.cz/) pozvat na oslavu Vánoc. Večírek se již tradičně odehraje v našem oblíbeném [Diving Club Manta](http://dcmanta.cz/cafebarmanta.html), a to *ve čtvrtek 21. prosince od 18:00*. Zváni jsou všichni studenti i pracovníci katedry.
DC Manta naleznete na adrese *Zborovská 22/1053*, kousek od tramvajové zastávky *Arbesovo náměstí*.
<!-- more -->
[Uložit do kalendáře (.ics)](vanocni-vecirek-2023.ics)
![Vánoce - pozvánka](vanocni-vecirek-2023.png)

@ -0,0 +1,35 @@
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Vánoční večírek KITTV
NAME:Vánoční večírek KITTV
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Prague
LAST-MODIFIED:20230407T050750Z
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Prague
X-LIC-LOCATION:Europe/Prague
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20231202T124323Z
DTSTART;TZID=Europe/Prague:20231221T180000
DTEND;TZID=Europe/Prague:20231221T235500
SUMMARY:Vánoční večírek KITTV
URL:https://it.pedf.cuni.cz/aktuality/2023-vanocni-vecirek/
DESCRIPTION:Přijďte se pobavit na vánoční večírek KITTV - již tradičně v https://dcmanta.cz/cafebarmanta.html
LOCATION:Diving club manta - Kořenského 5\, Praha 5\, Smíchov
END:VEVENT
END:VCALENDAR

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

@ -0,0 +1,11 @@
+++
title = "Richard Matthew Stallman"
date = 2023-09-30
[extra]
expiration = 2023-10-01
+++
Na fakultu zavítá důležitá osobnost, Richard Matthew Stallman, který Bude povídat o tématu “Free Digital Society”. Přednášku pořádá náš studentský spolek [microlab](https://microlab.space). Více informací naleznete na [webových stránkách přednášky](https://microlab.space/rms/).
Fotografie z přednášky naleznete v [galerii](@/katedra/galerie/rms/index.md).

@ -1,6 +1,7 @@
+++
title = "Galerie"
weight = 4
sort_by = "date"
template = "gallery-list.html"
page_template = "gallery.html"

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 KiB

@ -0,0 +1,9 @@
+++
title = "Richard Matthew Stallman"
description = "Přednáška od RMS na naší fakultě pořádaná studentským spolkem microlab."
date = 2023-09-30
+++
Přednáška od RMS na naší fakultě pořádaná studentským spolkem [microlab](https://microlab.space).
Autorem fotografí je [Ondřej Pastyřík](https://gkthkl.cz).

@ -7,16 +7,16 @@ icon = "ri-road-map-line"
+++
Naše pracoviště se nachází v hlavní budově Pedagogické fakulty v ulici
[Magdalény Rettigové 4, 116 39 Praha 1](https://www.openstreetmap.org/relation/67763#map=19/50.07973/14.42067&layers=N). Je to krátká slepá ulička ústící do ulice *Lazarská*, a to hned za křižovatkou *Lazarské* a *Spálené*.
[Magdalény Rettigové 4, 116 39 Praha 1](https://en.mapy.cz/s/docenegoje). Je to krátká slepá ulička ústící do ulice *Lazarská*, a to hned za křižovatkou *Lazarské* a *Spálené*.
Budova fakulty stojí u výstupu zastávky metra **Národní Třída** (linka B) a vedle zastávky tramvaje **Lazarská**. Při výstupu z metra použijte výtah, který vyjíždí přímo před bránu.
Chcete-li si ušetřit přestup kvůli jedné tramvajové zastávce, lze k nám dojít pěšky. Ze zastávky *Národní třída* se vydáte směrem na Karlovo náměstí a obejdete kostel. Ze zastávky *Novoměstská radnice* stačí jen projít kolem samotné radnice a dojdete až na Lazarskou.
- [Trasa z Novoměstské radnice](https://www.openstreetmap.org/directions?engine=graphhopper_foot&route=50.07747%2C14.41957%3B50.07966%2C14.42025#map=18/50.07856/14.41991)
- [Trasa z Národní třídy](https://www.openstreetmap.org/directions?engine=graphhopper_foot&route=50.08129%2C14.41949%3B50.07966%2C14.42025#map=18/50.08026/14.41986)
- [Trasa z Václavského náměstí nebo Můstku](https://www.openstreetmap.org/directions?engine=graphhopper_foot&route=50.08188%2C14.42557%3B50.07959%2C14.42024#map=18/50.08049/14.42288)
- [Trasa z Novoměstské radnice](https://en.mapy.cz/s/moruhozagu)
- [Trasa z Národní třídy](https://en.mapy.cz/s/fabajadosu)
- [Trasa z Václavského náměstí nebo Můstku](https://en.mapy.cz/s/bukanocome)
## Mapa
<iframe title="Mapa" class="map" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=14.416733980178835%2C50.077740291580795%2C14.423943758010866%2C50.08173010192646&amp;layer=mapnik&amp;marker=50.07973%2C14.42033" style="border: 1px solid black"></iframe><br/><small><a href="https://www.openstreetmap.org/relation/67763#map=19/50.07973/14.42067&layers=N">Zobrazit větší mapu</a></small>
<iframe class="map" src="https://en.frame.mapy.cz/s/cejonacule" frameborder="0"></iframe>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,9 +1,5 @@
{% extends "base.html" %}
{% block styles %}
<link rel="stylesheet" href="{{ get_url(path="fancybox/jquery.fancybox.min.css") }}">
{% endblock styles %}
{% block extra %}
{{ macro::breadcrumbs(page=section) }}
{% endblock %}
@ -20,8 +16,3 @@
</section>
</main>
{% endblock content %}
{% block javascript %}
<script src="{{ get_url(path="lib/jquery-3.6.0.min.js") }}"></script>
<script src="{{ get_url(path="fancybox/jquery.fancybox.min.js") }}"></script>
{% endblock %}

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block styles %}
<link rel="stylesheet" href="{{ get_url(path="fancybox/jquery.fancybox.min.css") }}">
<link rel="stylesheet" href="{{ get_url(path="fancybox/fancybox.css") }}">
{% endblock styles %}
{% block extra %}
@ -23,6 +23,6 @@
{% endblock content %}
{% block javascript %}
<script src="{{ get_url(path="lib/jquery-3.6.0.min.js") }}"></script>
<script src="{{ get_url(path="fancybox/jquery.fancybox.min.js") }}"></script>
<script src="{{ get_url(path="fancybox/fancybox.js") }}"></script>
<script>Fancybox.bind("[data-fancybox]", {});</script>
{% endblock %}

@ -242,7 +242,7 @@
<div class="description">{{ gallery.description }}</div>
{% endif %}
<div class="date">2021-05-02</div>
<div class="date">{{ gallery.date }}</div>
</div>
</a>
{% endfor %}

Binary file not shown.
Loading…
Cancel
Save