fix: added context processor

This commit is contained in:
2024-12-16 09:54:59 +01:00
parent ef91ef9090
commit fe2888c9a6
9 changed files with 28 additions and 23 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
{% load i18n %}
{% load static %}
{% load web %}
<nav class="bg-white dark:bg-gray-800 antialiased">
<!-- Left side -->
<div class="max-w-screen-xl px-4 mx-auto 2xl:px-0 py-4">
@@ -10,7 +9,7 @@
<div class="flex items-center space-x-8">
<div class="shrink-0">
<a class="flex flex-row items-center" href="{% url 'web:index' %}">
<img class="w-8 h-8 mr-2" src="{% get_logo_image %}" alt="{{ web_title }}">
<img class="w-8 h-8 mr-2" src="{{ logo }}" alt="{{ web_title }}">
<h1 class="text-xl font-semibold text-gray-900 dark:text-white">{{ web_title }}</h1>
</a>
</div>
+1 -2
View File
@@ -1,13 +1,12 @@
{% extends 'theme/base.html' %}
{% load i18n %}
{% load web %}
{% block main %}
<section class="bg-gray-50 dark:bg-gray-900">
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0">
<a href="{% url 'web:index' %}" class="flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white">
<img class="w-8 h-8 mr-2" src="{% get_logo_image %}" alt="logo">
<img class="w-8 h-8 mr-2" src="{{ logo }}" alt="logo">
{{ title }}
</a>