This repository was archived by the owner on Jun 30, 2022. It is now read-only.
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"version": 1,
3
- "homePage ": "Contents",
3
+ "homepage ": "Contents",
4
4
"blocks": [
5
5
{
6
6
"id": "60d44044-f931-40a7-8209-934248694e54",
Original file line number Diff line number Diff line change 1
1
import Layout from '../components/Layout'
2
2
import PagesNav from '../components/PagesNav'
3
- import { pageNames , homePage , getPageByName } from '../utils'
3
+ import { pageNames , homepage , getPageByName } from '../utils'
4
4
import LSPage from '../components/LSPage'
5
5
import TOC from '../components/TOC'
6
6
7
7
export default function Home ( ) {
8
8
const nav = < PagesNav pages = { pageNames } />
9
- const page = getPageByName ( homePage )
9
+ const page = getPageByName ( homepage )
10
10
const content = < LSPage page = { page } />
11
11
const toc = < TOC page = { page } />
12
12
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const pages = d.blocks.map((p) => {
13
13
} )
14
14
15
15
const DEFAULT_HOME_PAGE = 'Contents'
16
- export const homePage = d . homePage ?? DEFAULT_HOME_PAGE
16
+ export const homepage = d . homepage ?? DEFAULT_HOME_PAGE
17
17
18
18
export const pageNames = pages . map ( ( b ) => b . pageName ) . sort ( )
19
19
export function getPageByName ( name ) {
You can’t perform that action at this time.
0 commit comments