Skip to content

Commit

Permalink
Merge pull request #6 from alexandredubois/fix-tbd-sort-by-latest
Browse files Browse the repository at this point in the history
Fix TBD alt image attribute and sort by latest
  • Loading branch information
alexandredubois authored Oct 24, 2024
2 parents fb2448d + ec96d04 commit d0e1ce5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/_layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ <h1 class="page-heading">{{ page.title }}</h1>
{{ content }}

<ul class="">
{% for event in site.data.events.events %}
{% assign sorted_events = site.data.events.events | sort: 'StartDate' | reverse %}
{% for event in sorted_events %}


<li>
{% if event.StartDate != "TBD" %}
{{ event.StartDate }} |
{% else %}
<img alt="CFP devops barcelona" src="https://img.shields.io/badge/TBD-{{ event.Maybe }}-blue" style="max-width: 100%;">&nbsp;
<img alt="TBD To Be Define badge" src="https://img.shields.io/badge/TBD-{{ event.Maybe }}-blue" style="max-width: 100%;">&nbsp;
{%- endif -%}
<a class="" href="{{ event.Website }}" target="_blank">{{ event.Name }}</a> - {{ event.Location }}
</li>
Expand Down

0 comments on commit d0e1ce5

Please sign in to comment.