Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mporcheron authored Aug 29, 2024
2 parents 2530c03 + a287ac8 commit 1a90966
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
35 changes: 30 additions & 5 deletions _includes/footer_lastmod.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
{%- assign newest_source = page -%}

{%- if page.lastmod.type == "data" and page.lastmod.file -%}
{%- if page.last_commit.time_epoch < site.data.meta[page.lastmod.file].last_commit.time_epoch -%}

{%- if site.data.meta[page.lastmod.file].last_commit.time_epoch > newest_source.last_commit.time_epoch -%}
{%- assign newest_source = site.data.meta[page.lastmod.file] -%}
{%- endif -%}

{%- elsif page.lastmod.type == "data" and page.lastmod.files -%}

{%- assign newest_data_file = site.data.meta[page.lastmod.files.first] -%}
{%- for file in page.lastmod.files -%}
{%- assign candidate = site.data.meta[file] -%}
{%- if candidate.last_commit.time_epoch > newest.last_commit.time_epoch -%}
{%- assign newest_data_file = candidate -%}
{%- endif -%}
{%- endfor -%}
{%- if page.last_commit.time_epoch < newest.last_commit.time_epoch -%}
{%- assign newest_source = newest -%}

{%- if newest_data_file.last_commit.time_epoch > newest_source.last_commit.time_epoch -%}
{%- assign newest_source = newest_data_file -%}
{%- endif -%}

{%- elsif page.lastmod.type == "static" and page.lastmod.files -%}

{%- for static_file in site.static_files -%}
{%- if page.lastmod.files contains static_file.path -%}
{%- assign candidate = static_file -%}
{%- unless newest_static_file -%}
{%- assign newest_static_file = candidate -%}
{% else -%}
{%- if candidate.last_commit.time_epoch > newest_static_file.last_commit.time_epoch -%}
{%- assign newest_static_file = candidate -%}
{%- endif -%}
{%- endunless -%}
{%- endif -%}
{%- endfor -%}

{%- if newest_static_file.last_commit.time_epoch > newest_source.last_commit.time_epoch -%}
{%- assign newest_source = newest_static_file -%}
{%- endif -%}

{%- endif -%}

Last modified: <a href="{{- site.github.repo -}}commit/{{- newest_source.last_commit.sha -}}" title="{{- site.github.link_title -}}" class="text-muted" target="_blank">
{{- newest_source.last_modified_at_formatted -}}
</a>
{{- newest_source.last_modified_at_formatted -}}
</a>
15 changes: 10 additions & 5 deletions program/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@
{% assign days = days | uniq %}
{% assign num_days = days | size %}

<p>The program below is provisional and will be updated with more details soon. Please note that each paper presentation is allocated 16 minutes INCLUDING time for questions. We recommend that presenters speak for 12-13 minutes to allow a few minutes for questions. The paper sessions will be strictly timed so that we don’t overrun.</p>
<p>
The program below is provisional so please check for updates
</p>
<p>
Each paper presentation is allocated 15 minutes INCLUDING time for questions. We recommend that presenters speak for 10-12 minutes to allow a few minutes for questions. The paper sessions will be strictly timed so that we don’t overrun. Presenters will also be asked to submit their presentation slides in advance and to be in the room ahead of their session (e.g. during the preceding break period) to meet the session Chair. Further details will provided to presenters in due course.</p>
</p>

<ul class="nav nav-pills mb-3 pg-days-selector justify-items-center" role="tablist" aria-label="Days of the conference">
{% for day in days %}
Expand Down Expand Up @@ -170,10 +175,10 @@
</a>
{% endunless %}
{% endif %}
{% capture calendar_url %}/program/ics/{{ session.id }}.ics{% endcapture %}
<!--{% capture calendar_url %}/program/ics/{{ session.id }}.ics{% endcapture %}
<a href="{{ calendar_url | relative_url }}" title="Download an iCal (ICS) file for this session in the program" class="d-block prg-icon-cal me-2">
<span class="visually-hidden">iCalendar (ICS) file for this session</span>
</a>
</a>-->
{% capture session_url %}/program/link/{{ session.id }}{% endcapture %}
<a href="{{ session_url | relative_url }}" title="Get the permanent link to this session in the program" class="d-block prg-icon-link">
<span class="visually-hidden">Permalink to this session</span>
Expand Down Expand Up @@ -327,10 +332,10 @@ <h5 class="text-center mt-3">
</div>
{% endfor %}
</div>

<!--
<a href="/program/ics/all.ics" title="Download an iCal (ICS) file for all sessions in the program" class="d-block prg-icon-cal mt-3 mx-2 small text-center">
Download an iCalendar (ICS) file for all sessions
</a>
</a>-->

<script>
window.addEventListener('load', () => {
Expand Down

0 comments on commit 1a90966

Please sign in to comment.