Scroll all the way to the top for home
This commit is contained in:
parent
ef8688db85
commit
89b820eafc
1 changed files with 6 additions and 5 deletions
|
|
@ -5,9 +5,10 @@ import "../styles/global.css"
|
|||
|
||||
interface Props {
|
||||
title: string
|
||||
id?: string
|
||||
}
|
||||
|
||||
const { title } = Astro.props
|
||||
const { title, id } = Astro.props
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
|
@ -23,7 +24,7 @@ const { title } = Astro.props
|
|||
<meta name="generator" content={Astro.generator} />
|
||||
<title>Henry Hiles - {title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<body id={id}>
|
||||
<TopBar />
|
||||
<main><slot /></main>
|
||||
<slot name="navbar" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue