mirror of
https://github.com/inventree/inventree-website.git
synced 2025-05-05 16:58:54 +00:00
conditional rendering
This commit is contained in:
parent
e4f0506c4b
commit
00ba61c9bb
@ -1,8 +1,8 @@
|
|||||||
<section class="cm-gray-2 body-font">
|
<section class="cm-gray-2 body-font">
|
||||||
<div class="container px-5 py-24 mx-auto">
|
<div class="container px-5 py-24 mx-auto">
|
||||||
<div class="flex flex-col text-center w-full mb-20">
|
<div class="flex flex-col text-center w-full mb-20">
|
||||||
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 cm-gray-1">{{ include.data.title }}</h1>
|
{% if include.data.title %}<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 cm-gray-1">{{ include.data.title }}</h1>{% endif %}
|
||||||
<p class="lg:w-2/3 mx-auto leading-relaxed text-base">{{ include.data.text }}</p>
|
{% if include.data.text %}<p class="lg:w-2/3 mx-auto leading-relaxed text-base">{{ include.data.text }}</p>{% endif %}
|
||||||
{% if include.data.link %}
|
{% if include.data.link %}
|
||||||
<a class="text-secondary inline-flex items-center justify-center" href="{% include link.html item=include.data.link %}">Learn More {% include learn_more.html %}</a>
|
<a class="text-secondary inline-flex items-center justify-center" href="{% include link.html item=include.data.link %}">Learn More {% include learn_more.html %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user