Skip to content

Commit

Permalink
fix: don’t show banner if % rounds to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Oct 24, 2024
1 parent 9ffa2af commit 308921f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions output/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
</div>
{% elsif site.data.meta.total_fetched < site.data.meta.total_tweets %}
{% assign perc_unfetched = site.data.meta.total_fetched | times: -100 | divided_by: site.data.meta.total_tweets | plus:100 %}
{% if perc_unfetched > 0 %}
<div class="alert alert-warning" role="alert">
<strong>Tweets are currently being indexed.</strong> The {{ perc_unfetched }}% of unindexed tweets will not be included in search or filtering. <em><a class="alert-link" href="{{ '/about/#tweet-indexing-status' | relative_url }}">More…</a></em>
</div>
{% endif %}
{% endif %}

<main>
Expand Down

0 comments on commit 308921f

Please sign in to comment.