{# 
output_file: README.md
description: Markdown file with challenges grouped by categories
prettify: true
#}
# Challenge Index

{% set grouped = {} %}
{% for c in challenges %}{% set _ = grouped.setdefault(c.data.category, []).append(c) %}{% endfor %}

{% set show_points = challenges | selectattr("data.value", "ne", None) | list | length > 0 %}

{% for category, items in grouped.items() %}
## {{ category }}

| Name {% if show_points %}| Points {% endif %}| Path |
|------{% if show_points %}|--------{% endif %}|------|
{% for c in items %}
| {{ c.data.name }} {% if show_points %}| {{ c.data.value if c.data.value is not none else "" }} {% endif %}| [Link]({{ c.path }}) |
{% endfor %}

{% endfor %}