Skip to content

Commit

Permalink
WIP exporters/html_singlepage: always display the stars counter, show…
Browse files Browse the repository at this point in the history
… a ? when the stars number is unavailable
  • Loading branch information
nodiscc committed Apr 7, 2023
1 parent c1a3f1d commit 7ca725f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hecat/exporters/html_singlepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<span class="external-link"><a href="{{ software['website_url'] }}">Website</a></span>
<span class="external-link"><a href="{% if software['source_code_url'] is defined %}{{ software['source_code_url'] }}{% else %}{{ software['website_url'] }}{% endif %}">Source Code</a></span>
{% if software['stargazers_count'] is defined %}<span class="stars">★{{ software['stargazers_count'] }}</span>{% endif %}
<span class="stars">★{% if software['stargazers_count'] is defined %}{{ software['stargazers_count'] }}{% else %}?{% endif %}</span>
"""

Expand Down

0 comments on commit 7ca725f

Please sign in to comment.