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

This commit is contained in:
MultiMote 2023-01-01 21:59:37 +03:00
parent 74968c9847
commit 6396fbba0f
2 changed files with 5 additions and 2 deletions

View File

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

View File

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