feat(header.html): use wagtail site name instead of hard-coded

This commit is contained in:
2026-03-12 10:22:04 +01:00
parent 8f5a4f8b24
commit 240e0c654c

View File

@@ -1,7 +1,8 @@
{% load i18n %}
{% load i18n wagtailcore_tags %}
<header class="bg-blue-900 text-white shadow-md">
<div class="container mx-auto flex items-center justify-between py-4 px-6">
<a class="text-xl font-bold" href="/">Kursy</a>
{% wagtail_site as current_site %}
<a class="text-xl font-bold" href="/">{{ current_site.site_name }}</a>
<!-- search bar for large screens -->
<form action="{% url 'search' %}" method="get" class="hidden md:flex items-center bg-blue-950 rounded-md absolute left-1/2 transform -translate-x-1/2">