-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtalks.html
More file actions
97 lines (91 loc) · 3.15 KB
/
talks.html
File metadata and controls
97 lines (91 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
layout: page
title: Public Talks
permalink: /talks/
fluid: true
---
<p>Observations about the human at work, building software.</p>
{%- assign talks_info = site.data.talks -%}
<table class="talks">
<thead>
<tr>
<th>Date</th>
<th>Event</th>
<th></th>
<th>Location</th>
<th>Title</th>
<th></th>
</tr>
</thead>
<tbody>
{%- for talk in talks_info -%}
{%- comment -%} Find related post by slug or series {%- endcomment -%}
{%- assign related_post = nil -%}
{%- assign related_post_label = nil -%}
{%- if talk.post_slug -%}
{%- for post in site.posts -%}
{%- if post.slug == talk.post_slug -%}
{%- assign related_post = post -%}
{%- assign related_post_label = "Read the related post" -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
<tr{% if talk.coming_soon %} class="coming-soon"{% endif %}>
<td>{% if talk.coming_soon %}<span title="coming soon">⏳</span> {% endif %}{{ talk.date }}</td>
<td class="talk-conf">{%- if talk.link -%}<a href="{{ talk.link }}" target="_blank">{{ talk.conf }}</a>{%- else -%}{{ talk.conf }}{%- endif -%}</td>
<td>{{ talk.flag }}</td>
<td>{{ talk.location }}</td>
<td class="talk-title">
{{ talk.title }}
{%- if related_post -%}
<div class="talk-based-on">
<a href="{{ related_post.url }}">↳ {{ related_post_label }}</a>
</div>
{%- elsif talk.series -%}
<div class="talk-based-on">
<a href="/topic/{{ talk.series | slugify }}/">↳ Read the related series</a>
</div>
{%- endif -%}
</td>
<td class="link-texts">
{%- if talk.video_link -%}
<a href="{{ talk.video_link }}" target="_blank" class="link-video">Video</a>
{%- endif -%}
{%- if talk.slides_link -%}
<a href="{{ talk.slides_link }}" target="_blank" class="link-slides">Slides</a>
{%- endif -%}
{%- if talk.details_link -%}
<a href="{{ talk.details_link }}" target="_blank" class="link-schedule">Schedule</a>
{%- endif -%}
</td>
</tr>
{%- endfor -%}
</tbody>
</table>
<section class="talk-catalogue">
<h2>Talk Catalogue</h2>
<p>Interested in having me speak at your event? Here's what I talk about.</p>
<div class="talk-catalogue-list">
{%- for talk in site.data.talk_catalogue -%}
<div class="talk-catalogue-item">
<h3>{{ talk.title }}</h3>
{%- if talk.post_slug -%}
{%- for post in site.posts -%}
{%- if post.slug == talk.post_slug -%}
<div class="talk-based-on">
<a href="{{ post.url }}">↳ Read the related post</a>
</div>
{%- break -%}
{%- endif -%}
{%- endfor -%}
{%- elsif talk.series -%}
<div class="talk-based-on">
<a href="/topic/{{ talk.series | slugify }}/">↳ Read the related series</a>
</div>
{%- endif -%}
{{ talk.description | markdownify }}
</div>
{%- endfor -%}
</div>
</section>