|
1 | 1 | <!doctype html>
|
2 | 2 | <html lang="{{ (locale|lower)[:2] }}" dir="{% trans %}text_direction{% endtrans %}" >
|
| 3 | + |
| 4 | +{% if config['server']['icon'] %} |
| 5 | +{% set icon = config['server']['icon'] %} |
| 6 | +{% else %} |
| 7 | +{% set icon = config['server']['url'] + '/static/img/favicon.ico' %} |
| 8 | +{% endif %} |
| 9 | + |
| 10 | +{% if config['server']['logo'] %} |
| 11 | +{% set logo = config['server']['logo'] %} |
| 12 | +{% else %} |
| 13 | +{% set logo = config['server']['url'] + '/static/img/logo.png' %} |
| 14 | +{% endif %} |
| 15 | + |
3 | 16 | <head>
|
4 | 17 | <meta charset="{{ config['server']['encoding'] }}">
|
5 | 18 | <title>{% block title %}{% endblock %}{% if not self.title() %}{{ config['metadata']['identification']['title'] }}{% endif %}</title>
|
6 | 19 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
7 | 20 | <meta name="language" content="{{ config['server']['language'] }}">
|
8 | 21 | <meta name="description" content="{{ config['metadata']['identification']['title'] }}">
|
9 | 22 | <meta name="keywords" content="{{ config['metadata']['identification']['keywords']|join(',') }}">
|
10 |
| - <link rel="shortcut icon" href="{{ config['server']['url'] }}/static/img/favicon.ico" type="image/x-icon"> |
| 23 | + <link rel="shortcut icon" href="{{ icon }}" type="image/x-icon"> |
11 | 24 | <link rel="stylesheet" href="https://unpkg.com/bootstrap@5.1.3/dist/css/bootstrap.min.css">
|
12 | 25 | <link rel="stylesheet" href="{{ config['server']['url'] }}/static/css/default.css">
|
13 | 26 | <!--[if lt IE 9]>
|
|
40 | 53 | <header class="d-flex flex-wrap align-items-center py-3 justify-content-between">
|
41 | 54 | <a href="{{ config['server']['url'] }}"
|
42 | 55 | class="d-flex align-items-center mb-3 mb-md-0 text-dark text-decoration-none">
|
43 |
| - <img src="{{ config['server']['url'] }}/static/img/logo.png" |
| 56 | + <img src="{{ logo }}" |
44 | 57 | title="{{ config['metadata']['identification']['title'] }}" style="height:40px;vertical-align: middle;" /></a>
|
45 | 58 | <ul class="nav nav-pills">
|
46 | 59 | <li class="nav-item">
|
|
0 commit comments