seminima 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/head.html +1 -0
- data/_includes/talk.html +2 -3
- data/_layouts/talk.html +1 -2
- data/lib/seminima/calendar.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24293b7ce6cab34dd0997b64572edc7731533e33bc71ce5c6329846a2a4ad4e7
|
|
4
|
+
data.tar.gz: b0c7596a44e4de281f89b1e5fe5a585d932a4e91ae14579c4c024436145baab0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e7cafe97a91706e54862b7ecc1cd734d8e6a0390d7a95a69516a2fcf48f8845ffd2e5bb5de9153b3b671af4ba3e8506184c8f068394a9126206ea11df2ff96e
|
|
7
|
+
data.tar.gz: 26c069fb156db7f3d1e2961ccbf7fe1a4e71e4dfe9f28b3430a3561df1be03cbcf17b0ceb3d87b944a3df6a31891f4e7cd4acc9573155820883f53f149b7b9c7
|
data/_includes/head.html
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
5
|
{%- seo -%}
|
|
6
6
|
<link id="main-stylesheet" rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
|
7
|
+
{%- feed_meta -%}
|
|
7
8
|
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
|
8
9
|
{%- include google-analytics.html -%}
|
|
9
10
|
{%- endif -%}
|
data/_includes/talk.html
CHANGED
|
@@ -9,7 +9,6 @@ where: "key", talk.seminar | first %} | {{ seminar.title }} {%- endif
|
|
|
9
9
|
{{ talk.speaker }} - {{ talk.title }}
|
|
10
10
|
</a>
|
|
11
11
|
</h3>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{%- if page.location -%} — <span>Location: {{ page.location }}</span>{%- endif -%}
|
|
12
|
+
<span class="talk-info">Time: {{ talk.start_time }} —
|
|
13
|
+
Location: {{ talk.location }}</span>
|
|
15
14
|
</li>
|
data/_layouts/talk.html
CHANGED
|
@@ -11,8 +11,7 @@ layout: base
|
|
|
11
11
|
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
|
12
12
|
{{ page.date | date: date_format }}
|
|
13
13
|
</time>
|
|
14
|
-
{%- if page.start_time -%}— <span>Time: {{ page.start_time }}</span>
|
|
15
|
-
{%- else -%}— <span>Time: {{ page.date | date: "%H:%M" }}</span>{%- endif -%}{%- if page.location -%} — <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url -%}
|
|
14
|
+
{%- if page.start_time -%}— <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%} — <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url -%}
|
|
16
15
|
<a class="talk-url" href="{{ page.video_url }}">Video</a>
|
|
17
16
|
{%- endif -%}
|
|
18
17
|
{%- if page.slides_url -%}
|
data/lib/seminima/calendar.rb
CHANGED
|
@@ -25,16 +25,16 @@ module Jekyll
|
|
|
25
25
|
end
|
|
26
26
|
upcoming_talks.each do |talk|
|
|
27
27
|
cal.event do |e|
|
|
28
|
-
|
|
29
|
-
if
|
|
30
|
-
|
|
28
|
+
date = talk.date
|
|
29
|
+
if date.is_a?(String)
|
|
30
|
+
date = Date.parse(date)
|
|
31
31
|
end
|
|
32
32
|
e.uid = SecureRandom.uuid
|
|
33
33
|
zone = TZInfo::Timezone.get("Europe/Amsterdam")
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
end_time =
|
|
34
|
+
start_hour, start_min = talk.data["start_time"].split(":").map(&:to_i)
|
|
35
|
+
end_hour, end_min = talk.data["end_time"].split(":").map(&:to_i)
|
|
36
|
+
start_time = Time.new(date.year, date.month, date.day, start_hour, start_min, 0)
|
|
37
|
+
end_time = Time.new(date.year, date.month, date.day, end_hour, end_min, 0)
|
|
38
38
|
e.dtstart = Icalendar::Values::DateTime.new start_time, 'tzid' => tzid
|
|
39
39
|
e.dtend = Icalendar::Values::DateTime.new end_time, 'tzid' => tzid
|
|
40
40
|
e.summary = talk.data['speaker'] + ": " + talk.data['title']
|