Allow for custom image logo (#642)
* first test * add custom URL logo * some styling * fixed typo, wrong import * Update .env.example Co-authored-by: calle <93376500+callebtc@users.noreply.github.com> Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
co-authored by
calle
parent
906f0166bd
commit
77fbea25af
@@ -34,10 +34,12 @@
|
||||
{% endblock %}
|
||||
<q-toolbar-title>
|
||||
<q-btn flat no-caps dense size="lg" type="a" href="/">
|
||||
{% block toolbar_title %} {% if SITE_TITLE != 'LNbits' %} {{
|
||||
SITE_TITLE }} {% else %} <strong>LN</strong>bits {% endif %} {%
|
||||
endblock %}</q-btn
|
||||
>
|
||||
{% block toolbar_title %} {% if USE_CUSTOM_LOGO %}
|
||||
<img height="30px" alt="Logo" src="{{ USE_CUSTOM_LOGO }}" />
|
||||
{%else%} {% if SITE_TITLE != 'LNbits' %} {{ SITE_TITLE }} {% else
|
||||
%}
|
||||
<strong>LN</strong>bits {% endif %} {%endif%} {% endblock %}
|
||||
</q-btn>
|
||||
</q-toolbar-title>
|
||||
{% block beta %}
|
||||
<q-badge color="yellow" text-color="black" class="q-mr-md">
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
{% extends "base.html" %} {% block beta %}{% endblock %} {% block drawer_toggle
|
||||
%}{% endblock %} {% block drawer %}{% endblock %} {% block toolbar_title %}
|
||||
<a href="/" class="inherit">
|
||||
{% if SITE_TITLE != 'LNbits' %} {{ SITE_TITLE }} {% else %}
|
||||
<strong>LN</strong>bits {% endif %}
|
||||
<a
|
||||
href="/"
|
||||
class="inherit q-btn q-btn-item non-selectable no-outline q-btn--flat q-btn--rectangle q-btn--actionable q-focusable q-hoverable q-btn--no-uppercase q-btn--wrap q-btn--dense q-btn--active"
|
||||
style="font-size: 20px"
|
||||
>
|
||||
{% if USE_CUSTOM_LOGO %}
|
||||
<img height="30px" alt="Logo" src="{{ USE_CUSTOM_LOGO }}" />
|
||||
{%else%} {% if SITE_TITLE != 'LNbits' %} {{ SITE_TITLE }} {% else %}
|
||||
<strong>LN</strong>bits {% endif %} {% endif %}
|
||||
</a>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user