Логотип теперь ссылка

This commit is contained in:
MultiMote 2023-01-01 21:59:37 +03:00
parent d209ef1b16
commit 32b50b03aa
2 changed files with 5 additions and 2 deletions

View File

@ -16,13 +16,15 @@ nav.navbar {
font-size: 1.5rem;
padding: 10px 0;
margin-bottom: 1rem;
// line-height: 0%;
}
.logo {
width: 1.5em;
height: 1.5em;
margin-right: 0.5em;
background: no-repeat center url("/images/favicon.png");
background-size: cover;
}
.container {

View File

@ -1,7 +1,8 @@
<header>
<nav class="navbar">
<div class="container">
<img src="/images/favicon.png" alt="logo" class="logo">
<a class="logo" href="/"></a>
{{if not (eq .RelPermalink "/") }}
<a href="/">На главную</a>
{{end}}