Sha256: f38a2378f25f0c46c70deecb8f749f53b0b02b9fce8ff5dd63f3dd2e39f9e969

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

{% assign modul = include.modul | prepend: "dates-"  %}
{% assign time-correction = 7200 %} 
{% assign week-count = 0 %} 
{% assign starttime = 13 %} 
{% assign endtime = 16 %} 
{% assign difftime = endtime | minus: starttime %}

{% assign dates = site.data[modul] %}
{% for week in dates %} {% assign week-count = week-count | plus: 1 %}

<div class="timetable">
    <h2 class="title is-2" id="week-{{week-count}}"><span class="tag is-info">Woche {{week-count}}</span></h2>
    {% for days in week %} {% assign check = days["day-1"].datum | strip_newlines %} {% if check != "" %} {% assign date-start = days["day-1"].datum | append: " " | append: days["day-1"].start %} {% assign date-end = days["day-1"].datum | append: " " | append:
    days["day-1"].end %} {% assign sec-start = date-start | date: "%s" %} {% assign sec-end = date-end | date: "%s" %} {% assign sec-diff = sec-end | minus: sec-start %} {% assign hours-diff = sec-diff | divided_by:3600 %} {% comment %} Date Start: {{date-start
    | date: "%d %m %Y %H:%M"}}<br> Date End: {{date-end | date: "%d %m %Y %H:%M"}}<br> Sec Start: {{sec-start}}<br> Sec End: {{sec-end}}<br> Hours Diff: {{hours-diff}}
    <hr> {% endcomment %}

    <!--div class="columns"-->
    {% assign day1 = days["day-1"] %} {% include /timetable-day.html day=day1 starttime=starttime difftime=difftime time-correction=time-correction %} {% assign check = days["day-2"].datum | strip_newlines %} {% if check != "" %} {% assign day2 = days["day-2"]
    %} {% include /timetable-day.html day=day2 starttime=starttime difftime=difftime time-correction=time-correction %} {% endif %}
    <!--/div-->

    {% endif %} {% endfor %}
</div>

{% endfor %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mi-jekyll-theme-0.4.1 _includes/functions/zeitplan.html