Sha256: 500a18572e395f5a50f952dbad0cd00406f6a770fd1cf1d6544f2f2fc51be249

Contents?: true

Size: 1.69 KB

Versions: 15

Compression:

Stored size: 1.69 KB

Contents

{%- assign min_pause = site.conference.live.time_stop | default: 240 -%}
{%- assign min_pause = min_pause | times: 60 -%}

{%- if site.conference.live.streaming -%}
  {%- assign offset_start = site.conference.live.streaming.time_prepend | default: 5 -%}
  {%- assign offset_end = site.conference.live.streaming.time_extend | default: 5 -%}
{%- else -%}
  {%- assign offset_start = 0 -%}
  {%- assign offset_end = 0 -%}
{%- endif -%}

{%- assign live_starts = "" -%}
{%- assign live_ends = "" -%}

{%- for d in site.data.program.days -%}
  {%- for r in d.rooms -%}
    {%- assign last_end = 0 -%}

    {%- for t in r.talks -%}
      {%- include partials/get_talk_timestamp.html -%}

      {%- assign last_pause = timestamp_start | minus: last_end -%}

      {%- if forloop.last == true or last_pause >= min_pause and forloop.index0 > 0 -%}
        {%- if forloop.last -%}
          {%- assign last_end = timestamp_end -%}
        {%- endif -%}

        {%- assign live_end = offset_end | times: 60 | plus: last_end %}
        {%- if live_ends == "" -%}
          {%- assign live_ends = live_end -%}
        {%- else -%}
          {%- assign live_ends = live_ends | append: "," | append: live_end -%}
        {%- endif -%}
      {%- endif -%}

      {%- if forloop.index0 == 0 or last_pause >= min_pause -%}
        {%- assign live_start = offset_start | times: -60 | plus: timestamp_start -%}
        {%- if live_starts == "" -%}
          {%- assign live_starts = live_start -%}
        {%- else -%}
          {%- assign live_starts = live_starts | append: "," | append: live_start -%}
        {%- endif -%}
      {%- endif -%}

      {%- assign last_end = timestamp_end -%}
    {%- endfor -%}
  {%- endfor -%}
{%- endfor -%}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jekyll-theme-conference-3.4.1 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.4.0 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.3.0 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.2.0 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.5 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.4 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.3 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.2 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.1 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.1.0 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.0.4 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.0.3 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.0.2 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.0.1 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.0.0 _includes/partials/get_live_timestamps.html