Fix URL for home section
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
b5f602ddbe
commit
8b8c220680
3 changed files with 5 additions and 5 deletions
|
@ -8,6 +8,10 @@ html {
|
||||||
scroll-behavior: smooth !important;
|
scroll-behavior: smooth !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Fixes anchor overlapping with header.
|
Fixes anchor overlapping with header.
|
||||||
See: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors
|
See: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors
|
||||||
|
|
|
@ -11,10 +11,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-navbar {
|
.top-navbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<div class="collapse navbar-collapse dynamic-navbar" id="top-nav-items">
|
<div class="collapse navbar-collapse dynamic-navbar" id="top-nav-items">
|
||||||
<ul class="nav navbar-nav ml-auto">
|
<ul class="nav navbar-nav ml-auto">
|
||||||
<li class="nav-item">
|
<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>
|
</li>
|
||||||
{{ if $sections }}
|
{{ if $sections }}
|
||||||
{{ $sectionCount := 1 }}
|
{{ $sectionCount := 1 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue