Add BornHack 2022 talks
This commit is contained in:
parent
c3648852ea
commit
0ded48a5c7
|
@ -0,0 +1,7 @@
|
|||
file: iframe:https://media.ccc.de/v/bornhack2022-4201-exploring-the-degrees/oembed
|
||||
title: 'Exploring the Degrees of Freedom in Designing Interactive Fiction'
|
||||
date: 20220807
|
||||
description: >
|
||||
My main talk for BornHack 2022.
|
||||
|
||||
More information: https://bornhack.dk/bornhack-2022/program/exploring-the-degrees-of-freedom-in-designing-interactive-fiction/
|
|
@ -0,0 +1,7 @@
|
|||
file: iframe:https://media.ccc.de/v/bornhack2022-4213-roundworm-a-simple-fro/oembed
|
||||
title: 'roundworm: A simple frontend for browsing pictures and videos stored in S3 storage'
|
||||
date: 20220807
|
||||
description: >
|
||||
My lightning talk for BornHack 2022.
|
||||
|
||||
More information: https://bornhack.dk/bornhack-2022/program/roundworm-a-simple-frontend-for-browsing-pictures-and-videos-stored-in-s3-storage/
|
|
@ -80,6 +80,12 @@ def generate_video_section_html(section_html, media):
|
|||
thumbnail=thumbnail, link=link)
|
||||
return html_out
|
||||
|
||||
def iframe_video(file_src):
|
||||
return '''\
|
||||
<iframe width="759" height="427" src="{url}" frameborder="0" allowfullscreen>
|
||||
</iframe>
|
||||
'''.format(url=file_src)
|
||||
|
||||
def extern_video(file_src):
|
||||
url = 'https://media-metanohi-name.eu-central-1.linodeobjects.com/media/' + file_src
|
||||
return '''\
|
||||
|
@ -113,6 +119,7 @@ def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
|
|||
file_type, file_src = media['file'].split(':', 1)
|
||||
actions = {
|
||||
'extern': extern_video,
|
||||
'iframe': iframe_video
|
||||
'youtube': youtube_video
|
||||
}
|
||||
video_html = actions[file_type](file_src)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 248 KiB |
Binary file not shown.
After Width: | Height: | Size: 329 KiB |
Loading…
Reference in New Issue