2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-12 01:55:37 +00:00

add humanize

This commit is contained in:
Matthias Mair
2022-08-09 00:50:36 +02:00
parent 6ff8c6f9ef
commit aedddf406c
3 changed files with 280 additions and 1 deletions

View File

@ -5,7 +5,7 @@
{% assign stats = stats|default:site.data.general.stats.stats %}
{% for item in stats %}
<div class="p-4 sm:w-1/4 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">{{ item.number }}</h2>
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">{{ item.number | intword }}</h2>
<p class="leading-relaxed">{{ item.name }}</p>
</div>
{% endfor %}