2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-14 19:15:28 +00:00

refactor functions

This commit is contained in:
2022-02-07 01:16:35 +01:00
parent b1f3c19052
commit 41e8c5c3e7
6 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-gray-1">{{ include.data.title }}</h1>
{% if include.link %}
{% assign link=include.data.link|default:include.link %}
<a href="{% include link.html item=link %}" alt="learn more">{% include learn_more.html %}</a>
<a href="{% include fnc/link.html item=link %}" alt="learn more">{% include fnc/learn_more.html %}</a>
{% endif %}
</div>
<div class="h-1 w-20 bg-secondary rounded"></div>
@ -24,7 +24,7 @@
<p class="leading-relaxed text-base">{{ item.description }}
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
</p>
<a class="text-secondary inline-flex items-center" href="{% include link.html item=item.link %}" alt="learn more">Learn More {% include learn_more.html %}</a>
<a class="text-secondary inline-flex items-center" href="{% include fnc/link.html item=item.link %}" alt="learn more">Learn More {% include fnc/learn_more.html %}</a>
</div>
</div>
{% endfor %}