Merge branch 'vojta001/slides-recordings' into 'master'

Link to slides and recordings right at talks header

See merge request patek-devs/patek.cz!29
This commit is contained in:
Vojtěch Káně 2020-05-21 11:40:43 +00:00
commit a91e620402
8 changed files with 56 additions and 9 deletions

View File

@ -4,4 +4,8 @@ date: {{ .Date }}
draft: false
authors: [ "unknown" ]
when: {{ .Date }}
slides:
- data: <url>
recordings:
- data: <url>
---

View File

@ -4,7 +4,9 @@ date: 2020-05-19T14:53:45+02:00
draft: false
authors: [ "Franta" ]
when: 2020-05-18T14:30:00+02:00
slides:
- data: https://docs.google.com/presentation/d/1zJK37UjmgbKOJKhY0ZsHLlB5nX7MemSf-7O20cQI7GY
recordings:
- data: https://www.youtube.com/watch?v=qjoYp42F08k
---
Půlhodinový neformální úvod do toho, jak přemýšlet nejen nad rychlostí programů, ale hlavně teoretických algoritmů.
Prezentace je k dispozici [zde](https://docs.google.com/presentation/d/1zJK37UjmgbKOJKhY0ZsHLlB5nX7MemSf-7O20cQI7GY/edit?usp=sharing)

View File

@ -4,13 +4,12 @@ date: 2020-04-14T10:53:44+02:00
draft: false
authors: [ "Greenscreener", "Vojta" ]
when: 2020-04-15T17:00:00+02:00
slides:
- data: http://talks.grnscrnr.tk/git
recordings:
- data: https://www.youtube.com/watch?v=rlSiRVewDu0
---
Git je nejrozšířenější VCS současnosti. Co to vlastně je? Jak se používá? Během této přednášky chceme představit git úplným začátečníkům, představit základní, ale i složitější koncepty práce s ním a jak (ne)zbořit celý repozitář jedním příkazem.
Přednáška by měla proběhnout online na [Jitsi](https://meet.vpsfree.cz/P%C3%A1tek).
[Slidy](http://talks.grnscrnr.tk/git)
[Částečný záznam](https://youtu.be/rlSiRVewDu0)

View File

@ -4,7 +4,9 @@ date: 2020-05-18T16:29:43+02:00
draft: false
authors: [ "Sijisu" ]
when: 2020-05-18T15:00:00+02:00
slides:
- data: https://present.sijisu.eu/personal/openpgp
recordings:
- data: https://www.youtube.com/watch?v=TSiyKBtUSLI
---
V půlhodině nám Šimon shrnul základy kryptografie, především rozdíl mezi symmetrickými a asymmetrickými šiframi, a ukázal, jak se s tím vypořádává OpenPGP, otevřená alternativa Pretty Good Privacy Phila Zimmermanna.
Pro zájemce je k dispozici [prezentace](https://present.sijisu.eu/personal/openpgp).

View File

@ -32,6 +32,14 @@ other = "Datum přednášky"
[talks-paginator-heading]
other = "Nadcházející a proběhlé Talky"
[talks-slides]
other = "Prezentace"
[talks-recording]
one = "Záznam"
few = "Záznamy"
other = "Záznamy"
[tags]
other = "Tagy"

View File

@ -27,6 +27,13 @@ other = "Speaker"
[talks-paginator-heading]
other = "Upcoming and past Talks"
[talks-slides]
other = "Slides"
[talks-recording]
one = "Recording"
other = "Recordings"
[tags]
other = "Tags"

View File

@ -0,0 +1,23 @@
{{- range $i, $_ := .content -}}
{{- $type := (default "link" .type) -}}
{{- $desc := .desc -}}
{{- if (eq (len $.content) 1) -}}
{{- $desc = (default $.text $desc) -}}
{{- else -}}
{{- if (and (not (isset . "desc")) (not (eq $type "text"))) -}}{{- errorf "Missing description for content %s" .data -}}{{- end -}}
{{- end -}}
{{- if (and (or (gt (len $.content) 1) (eq $type "text")) (eq $i 0)) -}}{{- $.text -}}:&nbsp{{- end -}}
{{- if (gt $i 0) -}}, {{ end -}}
{{- if (eq $type "link") -}}
<a href="{{ .data }}" target="_blank" rel="noopener">{{ $desc }}</a>
{{- else if (eq $type "text") -}}
{{- .data -}}
{{- else if (eq $type "resource") -}}
{{- $resource := $.resources.GetMatch "fablab-experience.jpg" -}}
<a href="{{ $resource.RelPermalink }}">{{ $desc }}</a>
{{- else -}}
{{- errorf "Unknown content type %s" $type -}}
{{- end -}}
{{- end -}}

View File

@ -5,4 +5,6 @@
<p class="">
{{- T "presenter" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p>
{{- with .Params.slides -}}<p>{{ partial "linkedContent" (dict "text" (T "talks-slides" (len .)) "content" . "resources" $.Page.Resources) }}</p>{{- end -}}
{{- with .Params.recordings -}}<p>{{ partial "linkedContent" (dict "text" (T "talks-recording" (len .)) "content" . "resources" $.Page.Resources) }}</p>{{- end -}}
</div>