make title and logo link to home

This commit is contained in:
Gabriele Musco 2022-03-10 10:24:10 +01:00
parent de07aa3aed
commit 92861a3b56
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
2 changed files with 12 additions and 2 deletions

View File

@ -165,6 +165,12 @@ a {
@include linkLike;
}
a.unstyledLink {
border: none;
text-decoration: none;
color: var(--default_fg);
}
@mixin limitWidth {
max-width: $content_width;
margin-left: auto;

View File

@ -2,10 +2,14 @@
{{- partial "inject/header-before.html" . -}}
<div class="titleAndSearchContainer">
<div id="titleContainer">
<a class="unstyledLink" href="/">
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
</a>
<div class="rightOfLogo">
<div class="titleAndHamburger">
<h1>{{ .Site.Title | default "Ficurinia" }}</h1>
<h1>
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
</h1>
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
<label id="hamburger-menu" for="main-nav-toggler">
&#xf85b;