2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-18 21:15:25 +00:00

refactor to reduce double data

This commit is contained in:
2021-11-07 23:43:14 +01:00
parent 2b1a0ce567
commit b6684705d0
12 changed files with 36 additions and 33 deletions

View File

@ -1,7 +1,9 @@
<section class="cm-gray-2 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap -m-4 text-center">
{% for item in site.data.stats.stats %}
{% 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>
<p class="leading-relaxed">{{ item.name }}</p>