fix: Handle empty values in Footer template

This commit is contained in:
Faris Ansari 2020-04-27 13:15:09 +05:30
parent b8a50f063f
commit 014c9798bf

View file

@ -1,7 +1,7 @@
<div class="py-16">
{%- if brand_image -%}
<div class="w-20">
<img class="w-auto h-8 sm:h-10" src="{{ brand_image }}" alt="Brand Logo">
<img class="w-auto h-8 sm:h-10" src="{{ brand_image }}" alt="{{ brand_label or 'Brand Logo' }}">
</div>
{%- endif -%}
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
@ -17,16 +17,18 @@
{%- endfor -%}
</div>
{%- if content -%}
<div class="my-4">
{{ content }}
</div>
{%- endif -%}
</div>
<div class="flex flex-col items-start justify-between pt-4 text-xs text-gray-700 border-t-2 sm:flex-row">
<div>
{{ address }}
{{ address or '' }}
</div>
<div class="mt-4 sm:mt-0">
{{ copyright }}
{{ copyright or '' }}
</div>
</div>
</div>