Skip to content

Commit a9a4bde

Browse files
committed
📚 handle 0 contributor case
1 parent f11d0de commit a9a4bde

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

templates/CONTRIBUTORS.rst.jj2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% set contributors = moban_jinja2_contributors(organisation, name, author) %}
22

3+
{% if contributors %}
4+
35
{{ contributors|length }} contributors
46
================================================================================
57

@@ -8,3 +10,12 @@ In alphabetical order:
810
{% for contributor in contributors|sort(attribute='name') %}
911
* `{{ contributor.name }} <{{ contributor.html_url }}>`_
1012
{% endfor %}
13+
14+
{% else %}
15+
16+
No contributors yet
17+
=======================
18+
19+
* Your github link will be listed here after your PR is merged
20+
21+
{% endif %}

0 commit comments

Comments
 (0)