Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62461b0
commit 604ef16
Showing
14 changed files
with
108 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
pageType: 'home' | ||
|
||
title: Island SSG | ||
|
||
hero: | ||
name: Island | ||
text: Vite & React Powered Static Site Generator | ||
tagline: Simple, powerful, and performant. Meet the modern SSG framework you've always wanted. | ||
actions: | ||
- theme: brand | ||
text: Get Started | ||
link: /guide/getting-started | ||
- theme: alt | ||
text: View on GitHub | ||
link: https://github.com/sanyuan0704/island | ||
|
||
features: | ||
- title: "Vite: The DX that can't be beat" | ||
details: With Markdown-centered content, it's built to help you focus on writing and deployed with minimum configuration. | ||
icon: 🚀 | ||
- title: "Vite: The DX that can't be beat" | ||
details: With Markdown-centered content, it's built to help you focus on writing and deployed with minimum configuration. | ||
icon: 🚀 | ||
--- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import React from 'react'; | ||
import styles from './index.module.scss'; | ||
|
||
export function DocFooter() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 11 additions & 48 deletions
59
src/client/theme-default/components/HomeFeatures/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
import React from 'react'; | ||
// import { HomeLayout } from '../HomeLayout'; | ||
import { HomeLayout } from '../HomeLayout'; | ||
import { Nav } from '../../components/Nav'; | ||
import { DocLayout } from '../DocLayout'; | ||
import { usePageData } from 'island/client'; | ||
|
||
export const Layout: React.FC = () => { | ||
const { pageType } = usePageData(); | ||
// Use doc layout by default | ||
let contentLayout = <DocLayout />; | ||
switch (pageType) { | ||
case 'home': | ||
contentLayout = <HomeLayout />; | ||
break; | ||
case 'doc': | ||
default: | ||
break; | ||
} | ||
return ( | ||
<div> | ||
<Nav /> | ||
{/* <HomeLayout /> */} | ||
<DocLayout></DocLayout> | ||
{contentLayout} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters