Added a way to display the icon as part of the sitename

This commit is contained in:
Slatian 2023-12-29 02:37:22 +01:00
parent cd7a7fbe05
commit 96207f3960
3 changed files with 14 additions and 1 deletions

View File

@ -24,7 +24,11 @@
<body>
<header>
<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 }}">
<input type="search" name="query" autocomplete="on" maxlength="260"
title="Search for an IP-Adress, Domain-Name, or ASN."

View File

@ -13,6 +13,8 @@ favicon_mimetype = "image/svg+xml"
# favicon_mimetype = "image/png"
# favicon_mimetype = "image/jpeg"
display_icon = "icon.svg"
# URLs to look up v4 and v6 addresses explicitly
# If you have not configured them, comment them out, the button will stay hidden
v4_url="http://v4.localhost:3000/"

View File

@ -599,3 +599,10 @@ form.search {
background: var(--button-bg);
}
/* Custom icon style for sitename*/
.sitename > img {
height: 1.2em;
padding: 0 0.3ch;
margin-bottom: -.2em;
}