-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cd8f86
commit f86a78b
Showing
7 changed files
with
50 additions
and
28 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
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,4 +1,5 @@ | ||
<p class="mb-0 py-3"> | ||
© {{ site.time | date: "%Y" }} UKRI Trustworthy Autonomous Systems Hub<br> | ||
{%- include footer_lastmod.html -%} | ||
<!-- Designed by <a href="https://www.porcheron.uk/" title="Martin Porcheron's website">Martin Porcheron</a> and built with <a href="https://jekyllrb.com/" title="Jekyll website generator">Jekyll</a>.<br>--> | ||
</p> |
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,30 +1,21 @@ | ||
{%- assign last_modified_str = false -%} | ||
{%- assign last_modified_intro = false -%} | ||
{%- assign last_modified = false -%} | ||
|
||
{%- if page.lastmod == 'page' -%} | ||
|
||
{% capture last_modified_str %}{{ page.last_modified_at | date_to_long_string: "ordinal" }}{% endcapture %} | ||
|
||
{%- elsif page.lastmod.type == 'data' -%} | ||
|
||
{%- capture timestamp_date -%}{{ page.lastmod.file | data_file_last_mod: "%-d" }}{%- endcapture -%} | ||
{%- capture timestamp_rest -%}{{ page.lastmod.file | data_file_last_mod: "%B %Y" }}{%- endcapture -%} | ||
|
||
{%- if timestamp_date == "1" or timestamp_date == "21" or timestamp_date == "31" -%} | ||
{%- assign suffix = "st" -%} | ||
{%- elsif timestamp_date == "2" or timestamp_date == "22" -%} | ||
{%- assign suffix = "nd" -%} | ||
{%- elsif timestamp_date == "3" or date == "23" -%} | ||
{%- assign suffix = "rd" -%} | ||
{%- else -%} | ||
{%- assign suffix = "th" -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
|
||
{%- capture last_modified_str -%}{{ timestamp_date }}{{ suffix }} {{ timestamp_rest }}{%- endcapture -%} | ||
|
||
{%- endfor -%} | ||
{%- if page.last_commit.time_epoch < newest.last_commit.time_epoch -%} | ||
{%- assign newest_source = newest -%} | ||
{%- endif -%} | ||
{%- endif -%} | ||
|
||
{%- if last_modified_str != false -%} | ||
Last modified on {{ last_modified_str }}<br> | ||
{%- 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> |
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