Skip to content

Commit ff22971

Browse files
author
Sadanand Pai
committed
Home page placement changes
1 parent 1ce6666 commit ff22971

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

web/src/pages/_meta.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"index": {
3+
"title": "Home",
34
"theme": {
4-
"navbar": false,
55
"footer": false,
6-
"timestamp": false
6+
"toc": false,
7+
"breadcrumb": false,
8+
"pagination": false,
9+
"sidebar": true
710
},
8-
"type": "page",
911
"display": "hidden"
1012
},
1113
"concepts": "Concepts",

web/theme.config.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { useRouter } from "next/router";
2+
13
const metaTags = (
24
<>
35
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
@@ -13,6 +15,7 @@ const metaTags = (
1315
content="Collection of modern interview code challenges on JavaScript suitable for Interviewees | Interviewers | Knowledge test | Practice"
1416
/>
1517
<meta
18+
name="image"
1619
property="og:image"
1720
content="https://jscodechallenges.vercel.app/hero.svg"
1821
/>
@@ -31,6 +34,7 @@ const metaTags = (
3134
name="twitter:image"
3235
content="https://jscodechallenges.vercel.app/hero.svg"
3336
/>
37+
<meta name="author" content="Sadanand Pai" />
3438
</>
3539
);
3640

@@ -49,8 +53,15 @@ const config = {
4953
toc: { backToTop: true },
5054
feedback: { content: null },
5155
useNextSeoProps() {
56+
const { asPath } = useRouter();
57+
if (asPath === "/") {
58+
return {
59+
titleTemplate: "JavaScript Code Challenges",
60+
};
61+
}
62+
5263
return {
53-
titleTemplate: "%s – JS Code Challenges",
64+
titleTemplate: "%s - JavaScript Code Challenges",
5465
};
5566
},
5667
gitTimestamp: null,

0 commit comments

Comments
 (0)