Navbar height&style change in homepage #175
-
Dear developer, v1.0.0 user here, I would like to seek your help about how to adjust the height of navbar in homepage. I hope I can remain the same navbar style with other pages but I can't figure out where to modify that. Little bit like the pre-release version. Many thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi Elaine If you want to just reduce the height of the header on the homepage, you can reduce the If you want to make the homepage header look the same as the header on every other page, you can remove the You could theoretically make some other arbitrary page have a big header if you wanted. |
Beta Was this translation helpful? Give feedback.
Hi Elaine
If you want to just reduce the height of the header on the homepage, you can reduce the
$big-padding
variable in_styles/header.scss
.If you want to make the homepage header look the same as the header on every other page, you can remove the
data-big
attribute on the<header>
tag in_includes/header.html
. You can see that it gets set here, when the url is equal to/
(the homepage):https://github.com/greenelab/lab-website-template/blob/main/_includes/header.html#L15-L17
You could theoretically make some other arbitrary page have a big header if you wanted.