-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtalks.html
More file actions
97 lines (89 loc) · 4.02 KB
/
talks.html
File metadata and controls
97 lines (89 loc) · 4.02 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: default
title: Talks
pagination:
enabled: true
per_page: 10
indexpage: talks
permalink: talks/:num.html
---
<div class="space-y-8">
{% for post in paginator.posts %}
<article class="bg-white rounded-lg shadow-lg p-8">
<p class="text-gray-600 text-lg mb-6">{{ post.date | date: "%B %-d, %Y" }}</p>
<!-- Title and Content Section -->
<h2 class="text-3xl font-bold text-gray-800 mb-4"><a href="{{post.url}}">{{ post.title }}</a></h2>
<!-- External Link -->
{% if post.link %}
<div class="mb-6">
<a href="{{ post.link }}" target="_blank" class="inline-flex items-center text-blue-600 hover:text-blue-800 font-medium">
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
More Details
</a>
</div>
{% endif %}
{% assign clean_content = post.content | strip %}
{% assign content_size = clean_content | size %}
{% if content_size > 0 %}
<div class="mb-6">
<div class="prose prose-lg max-w-none">
{{ post.content }}
</div>
</div>
{% endif %}
<!-- Speakers Section at Bottom -->
{% if post.speakers %}
{% for speaker in post.speakers %}
<div class="speaker bg-gray-50 rounded-lg p-4 mb-4">
<div class="flex items-center justify-between">
<span class="text-lg font-semibold text-gray-800">{{ speaker.name }}</span>
<div class="social flex space-x-3">
{% if speaker.linkedin %}
<a href="https://www.linkedin.com/in/{{ speaker.linkedin }}/" target="_blank" class="text-gray-600 hover:text-red-600 transition-colors duration-200">
<img src="/assets/images/linkedin.svg" alt="LinkedIn" class="h-5 w-5" />
</a>
{% endif %}
{% if speaker.x-twitter %}
<a href="https://x.com/{{ speaker.x-twitter }}" target="_blank" class="text-gray-600 hover:text-red-600 transition-colors duration-200">
<img src="/assets/images/x-twitter.svg" alt="X" class="h-5 w-5" />
</a>
{% endif %}
{% if speaker.github %}
<a href="https://github.com/{{ speaker.github }}" target="_blank" class="text-gray-600 hover:text-red-600 transition-colors duration-200">
<img src="/assets/images/github.svg" alt="GitHub" class="h-5 w-5" />
</a>
{% endif %}
{% if speaker.web %}
<a href="{{ speaker.web }}" target="_blank" class="text-gray-600 hover:text-red-600 transition-colors duration-200">
<img src="/assets/images/link.svg" alt="link" class="h-5 w-5" />
</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% endif %}
</article>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="mt-8 flex justify-center">
<nav class="flex items-center space-x-4">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors duration-200">
← Newer Talks
</a>
{% endif %}
<span class="text-gray-600 px-4 py-2">
Page {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors duration-200">
Older Talks →
</a>
{% endif %}
</nav>
</div>
{% endif %}