Skip to content

Commit

Permalink
fix: title in sidebar changing marging
Browse files Browse the repository at this point in the history
* fix: title in sidebar changing marging
  • Loading branch information
Rhiyo committed Jul 13, 2024
1 parent 083bbb9 commit 1ca7be2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions assets/scss/partials/components/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
a {
font-size: 3.2rem;
}

h1 {
margin: 0;
}
}
}
}
8 changes: 5 additions & 3 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
alt="profile picture"
/>
{{ if .IsHome }}
<h1 class="sidebar__introduction-title">
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
</h1>
<div class="sidebar__introduction-title">
<h1>
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
</h1>
</div>
{{ else }}
<div class="sidebar__introduction-title">
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a>
Expand Down

0 comments on commit 1ca7be2

Please sign in to comment.