Commit df7be92 1 parent 266b577 commit df7be92 Copy full SHA for df7be92
File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import ContentHeading1 from "@/components/mdx/ContentHeading1";
2
2
import HeadingWithLanguageSelector from "@/components/mdx/HeadingWithLanguageSelector" ;
3
3
import MDXRenderer from "@/components/mdx/MDXRenderer" ;
4
4
import { getAllPostSlugs , getPostBySlug } from "@/utils/post" ;
5
+ import { Metadata } from "next" ;
5
6
import { title } from "process" ;
6
7
7
8
interface Params {
@@ -62,7 +63,7 @@ export async function generateStaticParams() {
62
63
} ) ) ;
63
64
}
64
65
65
- export async function generateMetadata ( { params } : Props ) {
66
+ export async function generateMetadata ( { params } : Props ) : Promise < Metadata > {
66
67
const { slug } = params ;
67
68
68
69
try {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Navigation from "@/components/navigation/Navigation";
3
3
import { getGuidemap } from "@/utils/post" ;
4
4
import Breadcrumbs from "./Breadcrumbs" ;
5
5
import ClientLayout from "./ClientLayout" ;
6
+ import { Metadata } from "next" ;
6
7
7
8
const RootLayout = async ( { children } : { children : React . ReactNode } ) => {
8
9
const guidemap = await getGuidemap ( ) ;
@@ -50,3 +51,23 @@ const RootLayout = async ({ children }: { children: React.ReactNode }) => {
50
51
} ;
51
52
52
53
export default RootLayout ;
54
+
55
+ export const metadata : Metadata = {
56
+ title : {
57
+ default : "solved.ac Help" ,
58
+ template : "%s - solved.ac Help" ,
59
+ } ,
60
+ icons : [
61
+ {
62
+ rel : "icon" ,
63
+ url : "/favicon.ico" ,
64
+ } ,
65
+ ] ,
66
+ openGraph : {
67
+ type : "website" ,
68
+ url : "https://help.solved.ac" ,
69
+ title : "solved.ac Help" ,
70
+ description : "Help documentation for solved.ac" ,
71
+ } ,
72
+ appleWebApp : true ,
73
+ } ;
You can’t perform that action at this time.
0 commit comments