diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-01-27 00:53:29 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-01-27 00:53:29 -0500 |
commit | 6de4c373099fc24100fe8bcfd63d2677f4018035 (patch) | |
tree | c4f8470f71395ef2c1b29093b91a6f08dae9b609 | |
parent | e4be70d7e30b403f480e23917f923fb9222c45d1 (diff) | |
download | emacsconf-wiki-6de4c373099fc24100fe8bcfd63d2677f4018035.tar.xz emacsconf-wiki-6de4c373099fc24100fe8bcfd63d2677f4018035.zip |
Try subtitle
-rw-r--r-- | 2020/info/15.md | 109 | ||||
-rw-r--r-- | templates/page.tmpl | 9 | ||||
-rw-r--r-- | templates/subtitle.tmpl (renamed from templates/subtitle.md) | 0 |
3 files changed, 22 insertions, 96 deletions
diff --git a/2020/info/15.md b/2020/info/15.md index 98c711e1..297b6cfe 100644 --- a/2020/info/15.md +++ b/2020/info/15.md @@ -53,100 +53,27 @@ website. <a name="transcript"></a> # Transcript -00:00:00.080 --> 00:00:03.120 -Adolfo: Okay, excellent. - -00:00:03.120 --> 00:00:06.960 -Hello, everyone and - -00:00:06.960 --> 00:00:10.080 -nice meeting you. Let me - -00:00:10.080 --> 00:00:12.400 -thank the the organizer for all the - -00:00:12.400 --> 00:00:13.920 -organization and all the work they are - -00:00:13.920 --> 00:00:15.200 -doing to support us. - -00:00:15.200 --> 00:00:18.400 -My name is Adolfo Villafiorita. - -00:00:18.400 --> 00:00:20.733 -I'm teaching at the University of -Trento. - -00:00:20.733 --> 00:00:24.480 -I will shortly be working at - -00:00:24.480 --> 00:00:26.240 -shared.tech, which is - -00:00:26.240 --> 00:00:29.359 -a non-profit organization developing - -00:00:29.359 --> 00:00:30.530 -applications to - -00:00:32.399 --> 00:00:35.680 -recover surplus food. - -00:00:35.680 --> 00:00:38.600 -The reason of the talk today - -00:00:38.600 --> 00:00:40.079 -and the reason I'm here today - -00:00:40.079 --> 00:00:42.719 -is to talk about my experience in moving - -00:00:42.719 --> 00:00:47.200 -from Jekyll static website generator to -Org Mode. - -00:00:47.200 --> 00:00:50.700 -The reason I moved to Org Mode - -00:00:50.700 --> 00:00:53.100 -is to have better support for - -00:00:53.100 --> 00:00:56.800 -literate programming on the websites - -00:00:56.800 --> 00:00:58.399 -at the University of Trento, where we - -00:00:58.399 --> 00:01:00.480 -make available the content for the - -00:01:00.480 --> 00:01:04.720 -the students. - -00:01:04.720 --> 00:01:08.900 -First of all, what is a static -website generator? - -00:01:08.900 --> 00:01:10.080 -It is basically a tool which - -00:01:10.080 --> 00:01:11.360 -allows you to - -00:01:11.360 --> 00:01:15.360 -generate HTML files out of text files - -00:01:15.360 --> 00:01:17.439 -containing basically two types of - -00:01:17.439 --> 00:01:20.700 -information: metadata and content. +00:00:00.080 --> 00:00:03.120 Adolfo: Okay, excellent. Hello, everyone +and nice meeting you. Let me thank the the organizer for all the +organization and all the work they are doing to support us. My name is +Adolfo Villafiorita. I'm teaching at the University of Trento. I will +shortly be working at shared.tech, which is a non-profit organization +developing applications to recover surplus food. + +00:00:35.680 --> 00:00:38.600 The reason of the talk today and the +reason I'm here today is to talk about my experience in moving from +Jekyll static website generator to Org Mode. The reason I moved to Org +Mode is to have better support for literate programming on the +websites at the University of Trento, where we make available the +content for the the students. + +00:01:04.720 --> 00:01:08.900 First of all, what is a static website +generator? It is basically a tool which allows you to generate HTML +files out of text files containing basically two types of information: +metadata and content. 00:01:20.700 --> 00:01:23.119 Metadata is a - -00:01:23.119 --> 00:01:26.159 set of key pairs describing the 00:01:26.159 --> 00:01:28.560 diff --git a/templates/page.tmpl b/templates/page.tmpl index 576f3d66..44b6a957 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -69,12 +69,11 @@ let qnaVideo; // some pages have a questions and answers video let timestamps; - // expects a string like "mm:ss" + // expects a string like "mm:ss.mmm" function parseSeconds(timeString) { - const times = timeString.split(":"); - const minutes = parseFloat(times[0]); - const seconds = parseFloat(times[1]); - return (minutes * 60) + seconds; + return timeString.split(":").reduce(function(prev, o) { + return prev * 60 + parseFloat(o); + }); } window.onload = function initScript() { diff --git a/templates/subtitle.md b/templates/subtitle.tmpl index dcd6971e..dcd6971e 100644 --- a/templates/subtitle.md +++ b/templates/subtitle.tmpl |