-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow talks of one "program day" to spread over multiple actual days
- Loading branch information
1 parent
7d5b828
commit 27295c8
Showing
8 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
jekyll-theme-conference (3.1.5) | ||
jekyll-theme-conference (3.2.0) | ||
jekyll (~> 4.0) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
{%- assign talk_start = t.time_start -%} | ||
{%- assign talk_end = t.time_end -%} | ||
|
||
{%- assign talk_start_hour = talk_start | split: ':' | first -%} | ||
{%- if talk_start contains ' +' -%} | ||
{%- assign talk_start_day = talk_start | split: ' +' | last | plus: 0 -%} | ||
{%- assign talk_start = talk_start | split: ' +' | first -%} | ||
{%- else -%} | ||
{%- assign talk_start_day = 0 -%} | ||
{%- endif -%} | ||
{%- if talk_end contains ' +' -%} | ||
{%- assign talk_end_day = talk_end | split: ' +' | last | plus: 0 -%} | ||
{%- assign talk_end = talk_end | split: ' +' | first -%} | ||
{%- else -%} | ||
{%- assign talk_end_day = 0 -%} | ||
{%- endif -%} | ||
|
||
{%- assign talk_start_hour = talk_start | split: ':' | first | plus: 0 -%} | ||
{%- assign talk_start_min = talk_start | split: ':' | last | divided_by: site.conference.program.time_steps | floor | times: site.conference.program.time_steps -%} | ||
{%- assign talk_end_hour = talk_end | split: ':' | first -%} | ||
{%- assign talk_end_hour = talk_end | split: ':' | first | plus: 0 -%} | ||
{%- assign talk_end_min = talk_end | split: ':' | last | divided_by: site.conference.program.time_steps | ceil | times: site.conference.program.time_steps -%} | ||
|
||
{%- assign talk_duration_min = talk_end_hour | minus: talk_start_hour | times: 60 | minus: talk_start_min | plus: talk_end_min -%} | ||
{%- assign talk_start_hour_24h = talk_start_day | times: 24 | plus: talk_start_hour -%} | ||
{%- assign talk_end_hour_24h = talk_end_day | times: 24 | plus: talk_end_hour -%} | ||
{%- assign talk_duration_min = talk_end_hour_24h | minus: talk_start_hour_24h | times: 60 | minus: talk_start_min | plus: talk_end_min -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{%- assign datetime_start = d.date | append: " " | append: t.time_start -%} | ||
{%- assign timestamp_start = datetime_start | date: "%s" -%} | ||
{%- assign datetime_end = d.date | append: " " | append: t.time_end -%} | ||
{%- assign timestamp_end = datetime_end | date: "%s" -%} | ||
{%- include partials/get_talk_time.html -%} | ||
|
||
{%- assign datetime_start = d.date | append: " " | append: time_start -%} | ||
{%- assign add_days_start = talk_start_day | times: 24 | times: 60 | times: 60 -%} | ||
{%- assign timestamp_start = datetime_start | date: "%s" | plus: add_days_start | date: "%s" -%} | ||
|
||
{%- assign datetime_end = d.date | append: " " | append: time_end -%} | ||
{%- assign add_days_end = talk_end_day | times: 24 | times: 60 | times: 60 -%} | ||
{%- assign timestamp_end = datetime_end | date: "%s" | plus: add_days_end | date: "%s" -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters