This commit is contained in:
rustdesk
2024-10-10 23:09:22 +08:00
parent 515f1eb519
commit 0425d544dd
21 changed files with 163 additions and 2319 deletions

View File

@@ -1,35 +0,0 @@
---
import PageLayout from '~/layouts/PageLayout.astro';
import Header from '~/components/widgets/Header.astro';
import { headerData } from '~/navigation';
import type { MetaData } from '~/types';
export interface Props {
metadata?: MetaData;
}
const { metadata } = Astro.props;
---
<PageLayout metadata={metadata}>
<Fragment slot="announcement">
<slot name="announcement" />
</Fragment>
<Fragment slot="header">
<slot name="header">
<Header
links={headerData?.links[2] ? [headerData.links[2]] : undefined}
actions={[
{
text: 'Download',
href: 'https://github.com/onwidget/astrowind',
},
]}
showToggleTheme
position="right"
/>
</slot>
</Fragment>
<slot />
</PageLayout>

View File

@@ -20,7 +20,7 @@ const { metadata } = Astro.props;
<Announcement />
</slot>
<slot name="header">
<Header {...headerData} isSticky showRssFeed showToggleTheme />
<Header {...headerData} isSticky showGithubStar showToggleTheme />
</slot>
<main>
<slot />