Fix URL for home section

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2023-10-07 00:34:18 +06:00
parent b5f602ddbe
commit 8b8c220680
3 changed files with 5 additions and 5 deletions

View file

@ -8,6 +8,10 @@ html {
scroll-behavior: smooth !important;
}
body {
position: relative;
}
/*
Fixes anchor overlapping with header.
See: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors

View file

@ -11,10 +11,6 @@
}
}
body {
position: relative;
}
.top-navbar {
position: fixed;
left: 0;

View file

@ -79,7 +79,7 @@
<div class="collapse navbar-collapse dynamic-navbar" id="top-nav-items">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#home">{{ i18n "home" }}</a>
<a class="nav-link" href="{{ if .IsHome }}#home{{else}}{{ site.BaseURL | relLangURL }}#home{{end}}">{{ i18n "home" }}</a>
</li>
{{ if $sections }}
{{ $sectionCount := 1 }}