add dynamical favicons

This commit is contained in:
ghost 2024-02-13 01:48:23 +02:00
parent 19e7b372d4
commit 1200fdf8d0
3 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>{% block title %}{{ app.name }}{% endblock %}</title> <title>{% block title %}{{ app.name }}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/css/{{ app.theme }}.css?{{ app.version }}" /> <link rel="stylesheet" type="text/css" href="/css/{{ app.theme }}.css?{{ app.version }}" />
<link rel="icon" href="{% block favicon %}/favicon.ico{% endblock %}" /> {% block favicon %}{% endblock %}
</head> </head>
<body> <body>
{% block body %}{% endblock %} {% block body %}{% endblock %}

View File

@ -1,5 +1,6 @@
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block title %}{% if title %}{{ title }} - {% endif %}{% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %} {% block title %}{% if title %}{{ title }} - {% endif %}{% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %}
{% block favicon %}<link rel="icon" href="{{ request.get('namespace') | jIdenticon }}" />{% endblock %}
{% block body %} {% block body %}
<div class="t-center px-16 pt-54"> <div class="t-center px-16 pt-54">
<div class="mx-a mw-560 px-16"> <div class="mx-a mw-560 px-16">

View File

@ -1,5 +1,6 @@
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block title %}{% if title %}{{ title }} - {% endif %}{{ app.name }}{% endblock %} {% block title %}{% if title %}{{ title }} - {% endif %}{{ app.name }}{% endblock %}
{% block favicon %}<link rel="icon" href="{{ record.namespace | jIdenticon }}" />{% endblock %}
{% block body %} {% block body %}
<div class="t-center px-16 pt-54"> <div class="t-center px-16 pt-54">
<div class="mx-a mw-560 px-16"> <div class="mx-a mw-560 px-16">