functionality for fixed navbar
This commit is contained in:
@@ -7,8 +7,13 @@ import ThemeSwitch from './ThemeSwitch'
|
||||
import SearchButton from './SearchButton'
|
||||
|
||||
const Header = () => {
|
||||
let headerClass = "flex items-center bg-white dark:bg-gray-950 justify-between py-10"
|
||||
if (siteMetadata.stickyNav){
|
||||
headerClass += " sticky top-0"
|
||||
}
|
||||
|
||||
return (
|
||||
<header className="flex items-center justify-between py-10">
|
||||
<header className={headerClass}>
|
||||
<div>
|
||||
<Link href="/" aria-label={siteMetadata.headerTitle}>
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user