Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit b104e06

Browse files
committed
Change homePage to homepage
1 parent 80d8706 commit b104e06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

data.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 1,
3-
"homePage": "Contents",
3+
"homepage": "Contents",
44
"blocks": [
55
{
66
"id": "60d44044-f931-40a7-8209-934248694e54",

src/pages/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Layout from '../components/Layout'
22
import PagesNav from '../components/PagesNav'
3-
import { pageNames, homePage, getPageByName } from '../utils'
3+
import { pageNames, homepage, getPageByName } from '../utils'
44
import LSPage from '../components/LSPage'
55
import TOC from '../components/TOC'
66

77
export default function Home() {
88
const nav = <PagesNav pages={pageNames} />
9-
const page = getPageByName(homePage)
9+
const page = getPageByName(homepage)
1010
const content = <LSPage page={page} />
1111
const toc = <TOC page={page} />
1212

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const pages = d.blocks.map((p) => {
1313
})
1414

1515
const DEFAULT_HOME_PAGE = 'Contents'
16-
export const homePage = d.homePage ?? DEFAULT_HOME_PAGE
16+
export const homepage = d.homepage ?? DEFAULT_HOME_PAGE
1717

1818
export const pageNames = pages.map((b) => b.pageName).sort()
1919
export function getPageByName(name) {

0 commit comments

Comments
 (0)