Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Minor template improvements

Marcin Gębalac0a520d9a7e9
diff --git a/templates/base.html b/templates/base.html
index 26f689fd44..3895dc37e9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -153,7 +153,7 @@
{% for category in categories %}
<li>
<a href="{{ category.get_absolute_url }}">
- {{ category }}
+ {{ category|capfirst }}
</a>
</li>
{% endfor %}
diff --git a/templates/home.html b/templates/home.html
index 61154bf6cf..ec4034a9b7 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -45,12 +45,14 @@
</div>
</div>
</div>
+ {% if products|length %}
<div class="home__featured">
<h2 class="text-center">{% trans "Featured products" %}</h2>
<div class="row">
{% include "category/_items.html" %}
</div>
</div>
+ {% endif %}
</div>
{% endblock %}