mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-11-10 08:37:21 +01:00
Added a way to display the icon as part of the sitename
This commit is contained in:
parent
cd7a7fbe05
commit
96207f3960
@ -24,7 +24,11 @@
|
|||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="{{ extra.base_url }}" class="sitename">{{extra.site_name|default(value="echoip")}}</a>
|
<a href="{{ extra.base_url }}" class="sitename">
|
||||||
|
{%- if extra.display_icon -%}
|
||||||
|
<img src="{{extra.display_icon}}" alt="">
|
||||||
|
{%- endif -%}
|
||||||
|
{{extra.site_name|default(value="echoip")}}</a>
|
||||||
<form class="search" method="GET" action="{{ extra.base_url }}">
|
<form class="search" method="GET" action="{{ extra.base_url }}">
|
||||||
<input type="search" name="query" autocomplete="on" maxlength="260"
|
<input type="search" name="query" autocomplete="on" maxlength="260"
|
||||||
title="Search for an IP-Adress, Domain-Name, or ASN."
|
title="Search for an IP-Adress, Domain-Name, or ASN."
|
||||||
|
@ -13,6 +13,8 @@ favicon_mimetype = "image/svg+xml"
|
|||||||
# favicon_mimetype = "image/png"
|
# favicon_mimetype = "image/png"
|
||||||
# favicon_mimetype = "image/jpeg"
|
# favicon_mimetype = "image/jpeg"
|
||||||
|
|
||||||
|
display_icon = "icon.svg"
|
||||||
|
|
||||||
# URLs to look up v4 and v6 addresses explicitly
|
# URLs to look up v4 and v6 addresses explicitly
|
||||||
# If you have not configured them, comment them out, the button will stay hidden
|
# If you have not configured them, comment them out, the button will stay hidden
|
||||||
v4_url="http://v4.localhost:3000/"
|
v4_url="http://v4.localhost:3000/"
|
||||||
|
@ -599,3 +599,10 @@ form.search {
|
|||||||
background: var(--button-bg);
|
background: var(--button-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Custom icon style for sitename*/
|
||||||
|
|
||||||
|
.sitename > img {
|
||||||
|
height: 1.2em;
|
||||||
|
padding: 0 0.3ch;
|
||||||
|
margin-bottom: -.2em;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user