Skip to content

Commit

Permalink
Past Meetings: Do not list future/ current
Browse files Browse the repository at this point in the history
- change _layouts/other.html to not include future meetings, or the
  current meeting
  • Loading branch information
chr5tphr committed Aug 13, 2024
1 parent d033a4b commit c408c8e
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions _layouts/other.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@
---

{% assign sorted = site.github.public_repositories %}

{% assign thisyear = site.conference.dates | last | date: "%Y" | to_integer %}


<h1>{{ page.title }}</h1>

{{ content }}

<ul>
{% for repository in sorted reversed %}{% if repository.has_pages %}{% unless repository.name contains 'github.io' %}{% if repository.name contains site.style %}
<li>
<a href="{{ repository.name | prepend: "/" | prepend: site.url | append: "/" }}"><b>{{ site.style | upcase }} {{ repository.name | remove_first: site.style }}</b></a> {{ repository.description }}
</li>
{% endif %}{% endunless %}{% endif %}{% endfor %}
{% for repository in sorted reversed %}
{% assign year = repository.name | remove_first: site.style | to_integer %}
{% if repository.has_pages and repository.name contains site.style and thisyear > year %}
{% unless repository.name contains 'github.io' %}
<li>
<a href="{{ repository.name | prepend: "/" | prepend: site.url | append: "/" }}"><b>{{ site.style | upcase | append: " " | append: year }} </b></a> {{ repository.description }}
</li>
{% endunless %}
{% endif %}
{% endfor %}
<br>
</ul>

0 comments on commit c408c8e

Please sign in to comment.