seminima 0.1.10 → 0.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56be4638b619e7c42b3ed275cdb981be48e7b2e5648c3f70c11a6210df8044a7
4
- data.tar.gz: 4225d0780dbd44ba0a91944af14231e0db479dd8073500c9914a96dfc6383133
3
+ metadata.gz: 59e28641a9bbce097d3160571cbf8e5e1a32d6922aebea7fdcf1ba3f3aba3e85
4
+ data.tar.gz: 4946e86fd8800408954f64f50c3d7b2a1e4aec948d5d45a1583731e67ffa97b2
5
5
  SHA512:
6
- metadata.gz: bf34f200de60ec203bdfb2cc14a712e999ddca12be97d43d446fc9adf8677576be891be0b154afa1dcac1eae3e1110d6c32a54a92806c1858f9785a92a7f6a49
7
- data.tar.gz: 4da517c89fde748373eacc3e233f77f528de50398a544cb44de8187aa396fd6bdb4fcc13329ff6eecc7be614cd68f24527da9ddb7c94f49ff46d5a5d9fafe51e
6
+ metadata.gz: a1bc391c8d91893ff62c8acd4a2c34dc4bfead7aee0376fd5eaf5260e7c1969fcad329335698aa3ccf512ea5c018267b499caa10268b04171d4a9f3b75102f73
7
+ data.tar.gz: b00753bb84eb1c55e2eb7d2d2c5ffb78591c0601858fc1bd6d585ad31df4060440882b7658f3ddf23caa65aaea7d0db6be10912fae99c8d17091118212db4eaa
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
- {%- if page.start_time -%}&mdash; <span>Time: {{ page.start_time }}</span>
13
- {%- else -%}&mdash; <span>Time: {{ page.date | date: "%H:%M" }}</span>{%- endif -%}
14
- {%- if page.location -%}&nbsp;&mdash; <span>Location: {{ page.location }}</span>{%- endif -%}
12
+ <span class="talk-info">Time: {{ talk.start_time }} &mdash;
13
+ Location: {{ talk.location }}</span>
15
14
  </li>
data/_layouts/talk.html CHANGED
@@ -4,21 +4,20 @@ layout: base
4
4
  <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
5
 
6
6
  <header class="post-header">
7
- <span class="talk-speaker">{{ page.speaker }} {% if page.affiliation %}({{page.affiliation}}){% endif %}</span>
7
+ <span class="talk-speaker">{{ page.speaker }} {% if page.affiliation && page.affiliation != "" %}({{page.affiliation}}){% endif %}</span>
8
8
  <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
9
9
  <p class="talk-page-info">
10
10
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
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 -%}&mdash; <span>Time: {{ page.start_time }}</span>
15
- {%- else -%}&mdash; <span>Time: {{ page.date | date: "%H:%M" }}</span>{%- endif -%}{%- if page.location -%}&nbsp;&mdash; <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url -%}
14
+ {%- if page.start_time -%}&mdash; <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%}&nbsp;&mdash; <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url && page.video_url != "" -%}
16
15
  <a class="talk-url" href="{{ page.video_url }}">Video</a>
17
16
  {%- endif -%}
18
- {%- if page.slides_url -%}
17
+ {%- if page.slides_url && page.slides_url != "" -%}
19
18
  <a class="talk-url" href="{{ page.slides_url }}">Slides</a>
20
19
  {%- endif -%}
21
- {%- if page.notes_url -%}
20
+ {%- if page.notes_url && page.notes_url != "" -%}
22
21
  <a class="talk-url" href="{{ page.notes_url }}">Notes</a>
23
22
  {%- endif -%}</p>
24
23
  </header>
@@ -25,16 +25,16 @@ module Jekyll
25
25
  end
26
26
  upcoming_talks.each do |talk|
27
27
  cal.event do |e|
28
- start_time = talk.date
29
- if start_time.is_a?(String)
30
- start_time = Date.parse(start_time)
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
- if not talk.data["end_time"]
35
- continue
36
- end
37
- end_time = Date.parse(talk.data["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']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seminima
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douwe Hoekstra