all-posts page, page titles, index page
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
import '@styles/main.css';
|
||||
import '@fontsource-variable/baskervville-sc';
|
||||
import ThemeSwitcher from '@components/ThemeSwitcher.astro';
|
||||
|
||||
export interface Props {
|
||||
pageTitle: string,
|
||||
}
|
||||
|
||||
const { pageTitle } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
@@ -9,6 +15,8 @@ import ThemeSwitcher from '@components/ThemeSwitcher.astro';
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
<title>{pageTitle}</title>
|
||||
|
||||
<!-- avoid FOUC by setting the color schme here in the header -->
|
||||
<script>
|
||||
const explicitPref = localStorage.getItem('theme-preference');
|
||||
|
||||
Reference in New Issue
Block a user