Sha256: 31b16beafd3a11e910ac05fb93376156b48ea1897560247570ced9504afb4b3a

Contents?: true

Size: 1.68 KB

Versions: 8

Compression:

Stored size: 1.68 KB

Contents

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

{%- if site.conference.live.streaming.enable -%}
  {%- assign offset_start = site.conference.live.streaming.prepend | default: 5 -%}
  {%- assign offset_end = site.conference.live.streaming.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

8 entries across 8 versions & 2 rubygems

Version Path
devops4lib-jekyll-theme-conference-0.0.1 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.6 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.5 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.4 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.3 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.2 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.1 _includes/partials/get_live_timestamps.html
jekyll-theme-conference-3.6.0 _includes/partials/get_live_timestamps.html