Author SHA1 Message Date
sijisu df584ecff3 FIX the about page 2021-01-03 09:58:11 +00:00
Vojtěch Káně 4205deb0f1 Add blog post PF 2021 2020-12-27 12:11:11 +01:00
Vojtěch Káně ea2df0c26a Merge branch 'vojta001/links-to-rss' into 'master'
Add links to RSS

See merge request patek-devs/patek.cz!54
2020-12-15 08:13:39 +00:00
Greenscreener ec974fbe1c Replced sqare rss icon with the normal one for buttons. 2020-12-14 21:21:09 +01:00
Greenscreener a0bf26b459 Enclosed rel-alternate links in buttons. 2020-12-14 21:15:22 +01:00
Greenscreener b73729c32a Made a better layout for rel-alternate buttons. 2020-12-14 21:14:44 +01:00
Vojtěch Káně 502b321268 Fix dash length in blog/covidbreak-part2 2020-11-24 14:13:17 +01:00
Vojtěch Káně 5ca2d9b301 Merge branch 'vojta001/talks-cal' into 'master'
Support talks iCal output

See merge request patek-devs/patek.cz!51
2020-11-13 15:00:15 +00:00
Vojtěch Káně 4b933552b4 Merge branch 'vojta001/update-hugo' into 'master'
Update Hugo from 0.55.6 to 0.78.1

See merge request patek-devs/patek.cz!53
2020-11-11 15:10:28 +00:00
Vojtěch Káně 685ed5d809 Add links to RSS
We have been supporting RSS from the beginning, but it wasn't immediately obvious. The RSS we generate stays the same, only links were added.

Given the current styling, I had to enforce paginator display even when there is only one page.
2020-11-11 13:27:44 +01:00
Vojtěch Káně 2b3a8ff9bd Fix the date of the patek.cz's internals talk 2020-11-11 09:23:46 +01:00
Vojtěch Káně 1f5e311cf9 Explicitly enable RSS output format for talks
RSS is enabled by default (which we want), but explicitly setting output formats disabled it.
2020-11-10 23:07:06 +01:00
Vojtěch Káně 84194ded8a Merge branch 'vojta001/remove-baseurl' into 'master'
Remove $baseUrl variable

See merge request patek-devs/patek.cz!52
2020-11-10 21:54:06 +00:00
Vojtěch Káně 9fb41b7b4a Merge branch 'vojta001/update-hugo' into vojta001/talks-cal
Features of the new Hugo are needed for the iCals to build
2020-11-10 22:00:19 +01:00
Vojtěch Káně 24c59f3bfb Update Hugo from 0.55.6 to 0.78.1 2020-11-10 21:55:19 +01:00
Vojtěch Káně d552a14513 Remove $baseUrl variable
I am convinced it is unused and occurs just because of being copy pasted.
2020-11-10 20:41:06 +01:00
Vojtěch Káně 0fcc265bb9 Support talks iCal output 2020-11-10 20:28:28 +01:00
Vojtěch Káně bd4ddefff3 Remove when field from content/talks/_index.en.md
`when` applies to individual talks only, not to the listing.

There is also no such value in the Czech language version.
2020-11-10 19:30:48 +01:00
Vojtěch Káně 7ab2c45019 Merge branch 'vojta001/dark-mode-fix' into 'master'
Fix emphasized text color in dark mode

Closes #16

See merge request patek-devs/patek.cz!48
2020-10-29 22:20:23 +00:00
Vojtěch Káně 7ec43bc5ca Extend @ondrejmachota's fix #16 for good old bs as well 2020-10-29 19:57:25 +01:00
Vojtěch Káně 70b95279bf Update the date of talks/install-gentoo
It was postponed to psp4 instead of psp3.
2020-10-28 11:03:37 +01:00
Vojtěch Káně b3214cd336 Fix talk name in blog/psp3 2020-10-28 10:45:58 +01:00
Vojtěch Káně 5cf95dec8e Replace hardcoded internal links with ref and relref shortcodes 2020-10-28 10:43:58 +01:00
25 changed files with 163 additions and 47 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ lint:
build: build:
stage: lint_build_test stage: lint_build_test
image: image:
name: klakegg/hugo:0.55.6-ext-alpine name: klakegg/hugo:0.78.1-ext-alpine@sha256:7c2d3702546b5aaddf7f960d138715f12ba4b94906d9dfcc2d4a5a4e8c4cb760
entrypoint: entrypoint:
- /bin/sh - /bin/sh
- "-c" - "-c"
@@ -44,7 +44,7 @@ build:
test: test:
stage: lint_build_test stage: lint_build_test
image: image:
name: klakegg/hugo:0.55.6-ext-alpine name: klakegg/hugo:0.78.1-ext-alpine@sha256:7c2d3702546b5aaddf7f960d138715f12ba4b94906d9dfcc2d4a5a4e8c4cb760
entrypoint: entrypoint:
- /bin/sh - /bin/sh
- "-c" - "-c"
+8 -1
View File
@@ -24,5 +24,12 @@
"project": "projects", "project": "projects",
"author": "authors" "author": "authors"
}, },
"pygmentsCodeFences": true "pygmentsCodeFences": true,
"markup": {
"goldmark": {
"renderer": {
"unsafe": true
}
}
}
} }
+1 -1
View File
@@ -10,7 +10,7 @@ menu:
landing: landing:
weight: 1 weight: 1
--- ---
Zatímco pátek je pátý den v týdnu, Pátek je kroužek a skupina studentů, kteří se zajímají nejen o informatiku, ale také fyziku, elektrotechniku, radioamatérství, matematiku, biologii a vše co je zajímavé. Stejně jako se [pátečníci](https://cs.wikipedia.org/wiki/P%C3%A1te%C4%8Dn%C3%ADci) Karla Čapka scházeli v jeho vile každé páteční odpoledne, tak se také my scházíme každé páteční odpoledne v jedné či více učebnách brandýského gymnázia poté, co všichni příčetní studenti odejdou domů. Velkou část těchto schůzek trávíme diskusemi o absurdních tématech (např. teorie myšlenky, antimyšlenky a jejich vzájemné anihilace), hádáním se o kontroverzních názorech (např. proč je Linux bezkonkurenčně lepší oproti ostatním operačním systémům) či prací na čemkoliv co, zrovna daný člen nestíhá. Děláme ale také mnoho *bohulibějších* činností: Zatímco pátek je pátý den v týdnu, Pátek je kroužek a skupina studentů, kteří se zajímají nejen o informatiku, ale také fyziku, elektrotechniku, radioamatérství, matematiku, biologii a vše co je zajímavé. Stejně jako se [pátečníci](https://cs.wikipedia.org/wiki/P%C3%A1te%C4%8Dn%C3%ADci) Karla Čapka scházeli v jeho vile každé páteční odpoledne, tak se také my scházíme každé páteční odpoledne v jedné či více učebnách brandýského gymnázia poté, co všichni příčetní studenti odejdou domů. Velkou část těchto schůzek trávíme diskusemi o absurdních tématech (např. teorie myšlenky, antimyšlenky a jejich vzájemné anihilace), hádáním se o kontroverzních názorech (např. proč je GNU/Linux bezkonkurenčně lepší oproti ostatním operačním systémům) či prací na čemkoliv co, zrovna daný člen nestíhá. Děláme ale také mnoho *bohulibějších* činností:
### Přednášky PátekTalks ### Přednášky PátekTalks
Dle známého českého přísloví *„Kdo umí, umí, kdo neumí, učí.“* si členové, kteří vědí něco, co ostatní neví, připravují jednou za čas přednášky o tématech, která jim připadají zajímavá. Vzhledem k tomu, že většina starších členů Pátku jsou skalní informatici, se většina přednášek ubírá tímto směrem, avšak kdo má odvahu, může se jim postavit se svým tématem. Dle známého českého přísloví *„Kdo umí, umí, kdo neumí, učí.“* si členové, kteří vědí něco, co ostatní neví, připravují jednou za čas přednášky o tématech, která jim připadají zajímavá. Vzhledem k tomu, že většina starších členů Pátku jsou skalní informatici, se většina přednášek ubírá tímto směrem, avšak kdo má odvahu, může se jim postavit se svým tématem.
+1 -1
View File
@@ -10,7 +10,7 @@ menu:
landing: landing:
weight: 1 weight: 1
--- ---
While "pátek" is the name of the fifth day of the week in Czech, Pátek is a group of students interested not only in IT and programming but also physics, electrical engineering, amateur radio, math, biology and anything interesting in general. Like [the Friday Men](https://en.wikipedia.org/wiki/Friday_Men) met in Karel Čapek's house every Friday afternoon, we meet every Friday afternoon in one or more classrooms in the grammar school in Brandýs nad Labem after all the sane students have gone home. A big part of these meetings is spent with discussions about absurd topics (e.g. the theory of thought, anti-thought and their mutual annihilation), arguing about controversial topics (e.g. why Linux is unbeatably better than all other OSes) and people tend to work on stuff they procrastinated to the last moments. We also do some *useful* stuff: While "pátek" is the name of the fifth day of the week in Czech, Pátek is a group of students interested not only in IT and programming but also physics, electrical engineering, amateur radio, math, biology and anything interesting in general. Like [the Friday Men](https://en.wikipedia.org/wiki/Friday_Men) met in Karel Čapek's house every Friday afternoon, we meet every Friday afternoon in one or more classrooms in the grammar school in Brandýs nad Labem after all the sane students have gone home. A big part of these meetings is spent with discussions about absurd topics (e.g. the theory of thought, anti-thought and their mutual annihilation), arguing about controversial topics (e.g. why GNU/Linux is unbeatably better than all other OSes) and people tend to work on stuff they procrastinated to the last moments. We also do some *useful* stuff:
### PátekTalks ### PátekTalks
In the spirit of a known Czech saying, that can be roughly translated to *"Who is good at something does it, who is bad at something teaches it."* students, who know something the others don't, prepare talks about topics they consider interesting. Because most members are conservative computer scientists, most these talks follow this direction, but if there is anyone brave enough, they can stand up to them with their topics. In the spirit of a known Czech saying, that can be roughly translated to *"Who is good at something does it, who is bad at something teaches it."* students, who know something the others don't, prepare talks about topics they consider interesting. Because most members are conservative computer scientists, most these talks follow this direction, but if there is anyone brave enough, they can stand up to them with their topics.
+1 -1
View File
@@ -1,5 +1,5 @@
--- ---
title: "COVID část druhá" title: "COVID část druhá"
date: 2020-10-06T21:59:34+02:00 date: 2020-10-06T21:59:34+02:00
draft: false draft: false
authors: [ "vojta001", "Greenscreener" ] authors: [ "vojta001", "Greenscreener" ]
+1 -1
View File
@@ -5,7 +5,7 @@ draft: false
authors: [ "Greenscreener" ] authors: [ "Greenscreener" ]
tags: [ "schuze" ] tags: [ "schuze" ]
--- ---
První Pátek tohoto školního roku byl skutečně nabitý a plný nefalšovaného Pátečního ducha. Na začátku jsme byli šokováni počtem nových členů, kteří nás přišli navštívit. Po krátkém projevu, který proběhl v úterý o velké přestávce v učebně primy, se nám na Pátku objevilo **deset** nových tváří, nadšených pro vše, co jsme jim ukázali. Vojta měl na začátku přednášku o 3D tiskárně, která sklidila nemalý úspěch a vyvolala neutuchající nadšení. Dalším šokem, který nás čekal, byla kopírka, kterou našel jeden z členů zahozenou po cestě ze školy. Je sice funkční, ale velmi často se v ní zasekává papír, proto je otázkou, jestli pro ni najdeme využití, nebo jestli bude rozebrána a přetvořena na něco jiného. Poté, co se trochu uklidnila atmosféra, proběhly přednášky o [Kybersoutěži a PátekCTF](/talks/patekctf1) a o [projektové dokumentaci](/talks/projectdocs). Nakonec jsme rozebrali pár starých elektrospotřebičů a poslední členové se rozešli domů. První Pátek tohoto školního roku byl skutečně nabitý a plný nefalšovaného Pátečního ducha. Na začátku jsme byli šokováni počtem nových členů, kteří nás přišli navštívit. Po krátkém projevu, který proběhl v úterý o velké přestávce v učebně primy, se nám na Pátku objevilo **deset** nových tváří, nadšených pro vše, co jsme jim ukázali. Vojta měl na začátku přednášku o 3D tiskárně, která sklidila nemalý úspěch a vyvolala neutuchající nadšení. Dalším šokem, který nás čekal, byla kopírka, kterou našel jeden z členů zahozenou po cestě ze školy. Je sice funkční, ale velmi často se v ní zasekává papír, proto je otázkou, jestli pro ni najdeme využití, nebo jestli bude rozebrána a přetvořena na něco jiného. Poté, co se trochu uklidnila atmosféra, proběhly přednášky o [Kybersoutěži a PátekCTF]({{< relref "/talks/patekctf1" >}}) a o [projektové dokumentaci]({{< relref "/talks/projectdocs" >}}). Nakonec jsme rozebrali pár starých elektrospotřebičů a poslední členové se rozešli domů.
Děkuji všem za účast a těším se na další takové Pátky, Děkuji všem za účast a těším se na další takové Pátky,
+14
View File
@@ -0,0 +1,14 @@
---
title: "PF 2021"
date: 2020-12-27T12:09:17+01:00
draft: false
authors: [ "vojta001" ]
tags: [ ]
---
Rok 2020 byl zatím asi nejbláznivějším v dějinách Pátku. Ovlivnil nejen Pátek jako celek a jeho pravidelné schůzky, ale i každého z nás naši pohodu, naše časové dispozice, naše vzdělávání.
Nic z toho na nás však nezanechalo šrámy. Nepolevili jsme ani ve scházení, ani v podílení na informatickém stavu školy, ani v nadšení, speciálně do akcí, jako hackatony a jiné kutilské počiny. Spousta musela proběhnout jinak, **ale proběhla**, a to nejen v kruhu klasiků, ale i nových tváří školního roku 2020/2021 a dokonce i naopak dávných příznivců dnes pohlcených vysokými školami. A aby toho nebylo málo, navázali jsme přátelství s Microlabem, což nám vyneslo skvěle přednášky a velký potenciál do budoucna.
**Velký dík vám všem**, kdo jste se podíleli a účastnili. Přeji nám všem, ať je rok 2021 co nejblíže normálu a co nejplnější osobního kontaktu. Jsem si však jistý, že ať už přinese cokoli, hravě se s tím vypořádáme!
Vojta
+3 -3
View File
@@ -21,10 +21,10 @@ Nyní však již k programu:
***Přednáška Petra a Emila je odložena na příští, respektive popříští týden a dnešní program je obstarán Honzou Černohorským a Vojtou.*** ***Přednáška Petra a Emila je odložena na příští, respektive popříští týden a dnešní program je obstarán Honzou Černohorským a Vojtou.***
15:00 - **Vojta Káně** - [hled pod pokličku patek.cz](/talks/patek_cz-internals/) 15:00 - **Vojta Káně** - [Pohled pod pokličku patek.cz]({{< relref "/talks/patek_cz-internals" >}})
15:30 - **Petr Velička** - [lfs-musl-clang](/talks/lfs/) 15:30 - **Petr Velička** - [lfs-musl-clang]({{< relref "/talks/lfs" >}})
16:00 - **Emil Miler (Nixi)** - [>install gentoo](/talks/install-gentoo) (pokud stihne dorazit) 16:00 - **Emil Miler (Nixi)** - [>install gentoo]({{< relref "/talks/install-gentoo" >}}) (pokud stihne dorazit)
Pokud jste tak ještě neučili a chcete, máte možnost se přihlásit k odběru novinek o těchto akcích [zde](https://forms.gle/SJpUP9XvicqN8ZBo6). Pokud jste tak ještě neučili a chcete, máte možnost se přihlásit k odběru novinek o těchto akcích [zde](https://forms.gle/SJpUP9XvicqN8ZBo6).
+5
View File
@@ -11,6 +11,11 @@ menu:
landing: landing:
weight: 4 weight: 4
title: "<patek-logo title='Talks' subtitle='Pátek'>Talks</patek-logo>" title: "<patek-logo title='Talks' subtitle='Pátek'>Talks</patek-logo>"
cascade:
outputs:
- HTML
- RSS
- Calendar
--- ---
Dle známého českého přísloví *„Kdo umí, umí, kdo neumí, učí.“* si členové, kteří vědí něco, co ostatní neví, připravují jednou za čas přednášky o tématech, která jim připadají zajímavá. Vzhledem k tomu, že většina starších členů Pátku jsou skalní informatici, se většina přednášek ubírá tímto směrem, avšak kdo má odvahu, může se jim postavit se svým tématem. Dle známého českého přísloví *„Kdo umí, umí, kdo neumí, učí.“* si členové, kteří vědí něco, co ostatní neví, připravují jednou za čas přednášky o tématech, která jim připadají zajímavá. Vzhledem k tomu, že většina starších členů Pátku jsou skalní informatici, se většina přednášek ubírá tímto směrem, avšak kdo má odvahu, může se jim postavit se svým tématem.
+6 -2
View File
@@ -3,7 +3,6 @@ title: "Talks"
date: 2019-08-06T09:43:00+02:00 date: 2019-08-06T09:43:00+02:00
draft: false draft: false
authors: [ "unknown" ] authors: [ "unknown" ]
when: 2019-08-06T09:43:00+02:00
buttonColor: "red" buttonColor: "red"
navColor: "red" navColor: "red"
menu: menu:
@@ -12,9 +11,14 @@ menu:
landing: landing:
weight: 4 weight: 4
title: "<patek-logo title='Talks' subtitle='Pátek'>Talks</patek-logo>" title: "<patek-logo title='Talks' subtitle='Pátek'>Talks</patek-logo>"
cascade:
outputs:
- HTML
- RSS
- Calendar
--- ---
In the spirit of a known Czech saying, that can be roughly translated to *"Who is good at something does it, who is bad at something teaches it."* students, who know something the others don't, prepare talks about topics they consider interesting. Because most members are conservative computer scientists, most these talks follow this direction, but if there is anyone brave enough, they can stand up to them with their topics. In the spirit of a known Czech saying, that can be roughly translated to *"Who is good at something does it, who is bad at something teaches it."* students, who know something the others don't, prepare talks about topics they consider interesting. Because most members are conservative computer scientists, most these talks follow this direction, but if there is anyone brave enough, they can stand up to them with their topics.
Obviously, we would be delighted, if anyone outside our little group joined us with their talk. Obviously, we would be delighted, if anyone outside our little group joined us with their talk.
This page contains write-ups for most of the talks we do. Some are only available in [Czech](/talks). This page contains write-ups for most of the talks we do. Some are only available in [Czech]({{< relref path="." lang="cs" >}}).
+1 -1
View File
@@ -3,7 +3,7 @@ title: ">install gentoo"
date: 2020-10-15 date: 2020-10-15
draft: false draft: false
authors: [ "nixi" ] authors: [ "nixi" ]
when: 2020-10-16T16:00:00+02:00 when: 2020-10-23T16:00:00+02:00
--- ---
Ve světě unixových operačních systémů existuje spousta možností, hlavně co se týče Linuxových distribucí (Yes Richard, [I know](https://pastebin.com/raw/jtRBT5F1) and I [don't care](https://pastebin.com/raw/QD4q7r5P)). Mezi nejoblíbenější distribuce patří Arch Linux, rádoby *minimalistická* hračka těch, kteří rádi machrují na lidi s Ubuntu, ale sami nemají na to, aby si nakonfigurovali svůj kernel a nainstalovali Gentoo. Ve světě unixových operačních systémů existuje spousta možností, hlavně co se týče Linuxových distribucí (Yes Richard, [I know](https://pastebin.com/raw/jtRBT5F1) and I [don't care](https://pastebin.com/raw/QD4q7r5P)). Mezi nejoblíbenější distribuce patří Arch Linux, rádoby *minimalistická* hračka těch, kteří rádi machrují na lidi s Ubuntu, ale sami nemají na to, aby si nakonfigurovali svůj kernel a nainstalovali Gentoo.
+1 -1
View File
@@ -3,7 +3,7 @@ title: "Pohled pod pokličku patek.cz"
date: 2020-10-14T17:21:50+02:00 date: 2020-10-14T17:21:50+02:00
draft: false draft: false
authors: [ "vojta001" ] authors: [ "vojta001" ]
when: 2020-10-15T15:00:00+02:00 when: 2020-10-16T15:00:00+02:00
--- ---
[patek.cz]({{< relref "/" >}}) je klasická webovka obsahující základní informace o svém provozovateli a blog. Nebo ne? [patek.cz]({{< relref "/" >}}) je klasická webovka obsahující základní informace o svém provozovateli a blog. Nebo ne?
+14 -1
View File
@@ -198,7 +198,7 @@ h2 a {
.container > .pageHeader > h2.pageTitle.title > a { .container > .pageHeader > h2.pageTitle.title > a {
color: white; color: white;
} }
strong { strong, b {
color: white; color: white;
} }
button svg path { button svg path {
@@ -316,6 +316,19 @@ patek-logo {
// To make the color constrast enought with white to pass the WCAG AA requirements // To make the color constrast enought with white to pass the WCAG AA requirements
color: #737373 !important; color: #737373 !important;
} }
.rel-alternate-buttons {
display: flex;
flex-direction: row-reverse;
align-items: center;
a {
margin-left: .3rem;
}
i {
font-size: 1.3rem;
}
}
// /Custom styles // /Custom styles
.patek-logo-top { .patek-logo-top {
+2
View File
@@ -33,6 +33,8 @@ other = "Datum přednášky"
other = "Nadcházející a proběhlé Talky" other = "Nadcházející a proběhlé Talky"
[talks-slides] [talks-slides]
one = "Prezentace"
few = "Prezentace"
other = "Prezentace" other = "Prezentace"
[talks-recording] [talks-recording]
+11 -3
View File
@@ -1,6 +1,14 @@
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }} {{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }} <div class="level is-mobile">
<div class="level-left">
{{ partial "paginator-buttons.html" $paginator }}
</div>
<div class="level-right">
<div class="rel-alternate-buttons">
<a class="button is-link" rel="alternate" href="{{ (.OutputFormats.Get "RSS").Permalink }}"><span class="icon is-medium"><i class="fas fa-2x fa-rss"></i></span></a>
</div>
</div>
</div>
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<div class="box"> <div class="box">
<div class="pageHeaderContainer"> <div class="pageHeaderContainer">
@@ -9,4 +17,4 @@
<div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div> <div class="content"><p> {{ .Summary }} <a href="{{ .Permalink }}">{{ T "readmore" }}</a> </p></div>
</div> </div>
{{ end }} {{ end }}
{{ partial "paginator-buttons.html" $paginator }} {{ partial "paginator-buttons.html" $paginator }}
@@ -4,7 +4,6 @@
<p class="has-text-grey"> <p class="has-text-grey">
{{- T "author" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }} {{- T "author" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p> </p>
{{ $baseUrl := .Site.BaseURL }}
{{ if .Params.tags }} {{ if .Params.tags }}
<p class="has-text-grey"> <p class="has-text-grey">
{{- T "tags" -}}: {{ range .Params.tags }}{{ with $.Site.GetPage (printf "tags/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }} {{- T "tags" -}}: {{ range .Params.tags }}{{ with $.Site.GetPage (printf "tags/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
@@ -0,0 +1,18 @@
{{- /* Note this file has CRLF line endings as required by the specs */ -}}
{{- /* replace does not support piping */ -}}
{{- $escaped := replace (replace (replace (replace . "\\" "\\\\") "\n" "\\n") "," "\\,") ";" "\\;" -}}
{{- $escapedLen := strings.RuneCount $escaped -}}
{{- $lineLen := 60 -}}
{{- $parts := (div $escapedLen $lineLen) -}}
{{- if (not (modBool $escapedLen $lineLen)) -}}
{{- $parts = (add $parts 1) -}}
{{- end -}}
{{- /* print the string by parts of at most 75 chars as required by the specs */ -}}
{{- range (seq (sub $parts 0)) -}}
{{- if (eq . 1) -}}
{{- substr $escaped (mul (sub . 1) $lineLen) $lineLen -}}
{{- else }}{{- /* the leading whitespace is important here */}}
{{ substr $escaped (mul (sub . 1) $lineLen) $lineLen -}}
{{- end -}}
{{- end -}}
+10 -2
View File
@@ -1,6 +1,14 @@
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }} {{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }} <div class="level">
<div class="level-left">
{{ partial "paginator-buttons.html" $paginator }}
</div>
<div class="level-right">
<div class="rel-alternate-buttons">
<a class="button is-link" rel="alternate" href="{{ (.OutputFormats.Get "RSS").Permalink }}"><span class="icon is-medium"><i class="fas fa-2x fa-rss"></i></span></a>
</div>
</div>
</div>
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<div class="box"> <div class="box">
<div class="pageHeaderContainer"> <div class="pageHeaderContainer">
+1
View File
@@ -37,6 +37,7 @@
{{ end }} {{ end }}
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
<a rel="alternate" href="{{ (.Site.Home.OutputFormats.Get "RSS").Permalink }}" class="navbar-item"><span class="icon"><i class="fas fa-lg fa-rss"></i></span></a>
<a href="#" class="navbar-item dark-mode-toggler" role="button" aria-label="Toggle dark mode"> <a href="#" class="navbar-item dark-mode-toggler" role="button" aria-label="Toggle dark mode">
<i class="fas fa-moon" aria-hidden="true" title="Toggle dark mode"></i> <i class="fas fa-moon" aria-hidden="true" title="Toggle dark mode"></i>
</a> </a>
@@ -1,28 +1,26 @@
{{ $paginator := . }} {{ $paginator := . }}
{{ if gt $paginator.TotalPages 1 }} {{ if gt $paginator.TotalPages 1 }}
<div class="has-margin-bottom-1em"> <nav class="pagination" role="navigation" aria-label="pagination">
<nav class="pagination" role="navigation" aria-label="pagination"> <ul class="pagination-list">
<ul class="pagination-list"> <li>
<a class="pagination-link" href="{{ $paginator.First.URL }}">«</a>
</li>
{{ if $paginator.HasPrev }}
<li> <li>
<a class="pagination-link" href="{{ $paginator.First.URL }}">«</a> <a class="pagination-link" href="{{ $paginator.Prev.URL }}">{{ $paginator.Prev.PageNumber }}</a>
</li> </li>
{{ if $paginator.HasPrev }} {{ end }}
<li> <li>
<a class="pagination-link" href="{{ $paginator.Prev.URL }}">{{ $paginator.Prev.PageNumber }}</a> <a class="pagination-link is-current">{{ $paginator.PageNumber }}</a>
</li> </li>
{{ end }} {{ if $paginator.HasNext }}
<li> <li>
<a class="pagination-link is-current">{{ $paginator.PageNumber }}</a> <a class="pagination-link" href="{{ $paginator.Next.URL}}">{{ $paginator.Next.PageNumber }}</a>
</li> </li>
{{ if $paginator.HasNext }} {{ end }}
<li> <li>
<a class="pagination-link" href="{{ $paginator.Next.URL}}">{{ $paginator.Next.PageNumber }}</a> <a class="pagination-link" href="{{ $paginator.Last.URL }}">»</a>
</li> </li>
{{ end }} </ul>
<li> </nav>
<a class="pagination-link" href="{{ $paginator.Last.URL }}">»</a> {{ end }}
</li>
</ul>
</nav>
</div>
{{ end }}
@@ -0,0 +1,14 @@
{{- /* Note this file has CRLF line endings as required by the specs */ -}}
BEGIN:VEVENT
UID:{{ partial "icalEscape.ics" .Permalink }}
CREATED:{{ dateFormat "20060102T150405Z" .Date.UTC }}
DTSTAMP:{{ dateFormat "20060102T150405Z" (now).UTC }}
SUMMARY:{{ .Title | plainify | partial "icalEscape.ics" }}
DESCRIPTION:{{ printf "%s %s" (.Content | plainify | truncate 200) .Permalink | partial "icalEscape.ics" }}
DTSTART:{{ dateFormat "20060102T150405Z" (time .Params.When).UTC }}
DTEND:{{ $length := 30 -}}
{{- with .Params.Length -}}
{{ $length = (int .) }}
{{- end -}}
{{- dateFormat "20060102T150405Z" (time (add (time .Params.When).Unix (mul $length 60))).UTC }}
END:VEVENT
@@ -1,7 +1,7 @@
<div class="pageHeader"> <div class="pageHeader">
<h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <h2 class="title pageTitle"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="has-text-grey">{{- T "published" -}}:&nbsp;<time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05.000-0700" }}">{{ .PublishDate.Format "02.01.2006 15:04" }}</time></p> <p class="has-text-grey">{{- T "published" -}}:&nbsp;<time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05.000-0700" }}">{{ .PublishDate.Format "02.01.2006 15:04" }}</time></p>
<p class="">{{- T "talks-when" -}}:&nbsp;<time datetime="{{ dateFormat "2006-01-02T15:04:05.000-0700" .Params.when }}">{{ dateFormat "02.01.2006 15:04" .Params.when }}</time></p> <p class="">{{- T "talks-when" -}}:&nbsp;<time datetime="{{ dateFormat "2006-01-02T15:04:05.000-0700" .Params.when }}">{{ dateFormat "02.01.2006 15:04" .Params.when }}</time> <a rel="alternate" href="{{ (.OutputFormats.Get "Calendar").Permalink | safeURL }}"><span class="icon"><i class="fas fa-calendar-alt"></i></span></a></p>
<p class=""> <p class="">
{{- T "presenter" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }} {{- T "presenter" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
</p> </p>
+12 -3
View File
@@ -4,9 +4,18 @@
{{ .Content }} {{ .Content }}
</div> </div>
<h3 class="title">{{ T "talks-paginator-heading" }}:</h3> <h3 class="title">{{ T "talks-paginator-heading" }}:</h3>
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate ((.Pages.ByParam "when").Reverse) }} {{ $paginator := .Paginate ((.Pages.ByParam "when").Reverse) }}
{{ partial "paginator-buttons.html" $paginator }} <div class="level is-mobile">
<div class="level-left">
{{ partial "paginator-buttons.html" $paginator }}
</div>
<div class="level-right">
<div class="rel-alternate-buttons">
<a class="button is-link" rel="alternate" href="{{ (.OutputFormats.Get "Calendar").Permalink | safeURL }}"><span class="icon is-medium"><i class="fas fa-2x fa-calendar-alt"></i></span></a>
<a class="button is-link" rel="alternate" href="{{ (.OutputFormats.Get "RSS").Permalink }}"><span class="icon is-medium"><i class="fas fa-2x fa-rss"></i></span></a>
</div>
</div>
</div>
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<div class="box"> <div class="box">
<div class="pageHeaderContainer"> <div class="pageHeaderContainer">
@@ -16,4 +25,4 @@
</div> </div>
{{ end }} {{ end }}
{{ partial "paginator-buttons.html" $paginator }} {{ partial "paginator-buttons.html" $paginator }}
{{ end }} {{ end }}
+9
View File
@@ -0,0 +1,9 @@
{{- /* Note this file has CRLF line endings as required by the specs */ -}}
BEGIN:VCALENDAR
VERSION:2.0
PRODID:gohugo
CALSCALE:GREGORIAN
{{ range .RegularPages -}}
{{ partial "talkIcal.ics" . -}}
{{- end -}}
END:VCALENDAR
+7
View File
@@ -0,0 +1,7 @@
{{- /* Note this file has CRLF line endings as required by the specs */ -}}
BEGIN:VCALENDAR
VERSION:2.0
PRODID:gohugo
CALSCALE:GREGORIAN
{{ partial "talkIcal.ics" . -}}
END:VCALENDAR