Skip to content

Commit

Permalink
updated years to data file (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrying authored Apr 2, 2024
1 parent e059bc5 commit ac443d3
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 242 deletions.
178 changes: 0 additions & 178 deletions 2017.md

This file was deleted.

17 changes: 0 additions & 17 deletions 2018.md

This file was deleted.

23 changes: 0 additions & 23 deletions 2019.md

This file was deleted.

9 changes: 0 additions & 9 deletions 2020.md

This file was deleted.

9 changes: 0 additions & 9 deletions 2022.md

This file was deleted.

10 changes: 10 additions & 0 deletions _data/previous-years.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- titleDisplay: "2017"
redirect_to: "https://2017.ournetworks.ca"
- titleDisplay: "2018"
redirect_to: "https://2018.ournetworks.ca"
- titleDisplay: "2019"
redirect_to: "https://2019.ournetworks.ca"
- titleDisplay: "2020"
redirect_to: "https://2020.ournetworks.ca"
- titleDisplay: "2̶0̶2̶2̶ 2047"
redirect_to: "https://2047.ournetworks.ca"
16 changes: 11 additions & 5 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
</a>
{% assign sorted2_pages = site.pages | sort: "order" %}
<ul class="nav-item-sub" aria-hidden="true">
{%- for page2 in sorted2_pages -%}
{% if page.title == page2.parent %}
<li><a class="{% if current != '/' %}{% if page2.url == current %}active{% endif %}{% endif %}" href="{% if page2.redirect_to %}{{ page2.redirect_to }}{% else %}{{ page2.url }}{% endif %}" aria-label="{% if page2.titleDisplay %}{{ page2.titleDisplay }}{% else %}{{ page2.title }}{% endif %}">{% if page2.titleDisplay %}{{ page2.titleDisplay }}{% else %}{{ page2.title }}{% endif %}</a></li>
{% endif %}
{%- endfor -%}
{% if page.title == "Previous years" %}
{%- for year in site.data.previous-years -%}
<li><a href="{{ year.redirect_to }}" aria-label="{{ year.titleDisplay }}" target="_blank">{{ year.titleDisplay }}</a></li>
{%- endfor -%}
{% else %}
{%- for page2 in sorted2_pages -%}
{% if page.title == page2.parent %}
<li><a class="{% if current != '/' %}{% if page2.url == current %}active{% endif %}{% endif %}" href="{% if page2.redirect_to %}{{ page2.redirect_to }}{% else %}{{ page2.url }}{% endif %}" aria-label="{% if page2.titleDisplay %}{{ page2.titleDisplay }}{% else %}{{ page2.title }}{% endif %}">{% if page2.titleDisplay %}{{ page2.titleDisplay }}{% else %}{{ page2.title }}{% endif %}</a></li>
{% endif %}
{%- endfor -%}
{% endif %}
</ul>
</li>
{% endif %}
Expand Down
1 change: 0 additions & 1 deletion previous-years.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
layout: page
order: 3
title: "Previous years"
titleDisplay: "Previous years"
---

0 comments on commit ac443d3

Please sign in to comment.