File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import ContentHeading1 from "@/components/mdx/ContentHeading1";
22import HeadingWithLanguageSelector from "@/components/mdx/HeadingWithLanguageSelector" ;
33import MDXRenderer from "@/components/mdx/MDXRenderer" ;
44import { getAllPostSlugs , getPostBySlug } from "@/utils/post" ;
5+ import { Metadata } from "next" ;
56import { title } from "process" ;
67
78interface Params {
@@ -62,7 +63,7 @@ export async function generateStaticParams() {
6263 } ) ) ;
6364}
6465
65- export async function generateMetadata ( { params } : Props ) {
66+ export async function generateMetadata ( { params } : Props ) : Promise < Metadata > {
6667 const { slug } = params ;
6768
6869 try {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Navigation from "@/components/navigation/Navigation";
33import { getGuidemap } from "@/utils/post" ;
44import Breadcrumbs from "./Breadcrumbs" ;
55import ClientLayout from "./ClientLayout" ;
6+ import { Metadata } from "next" ;
67
78const RootLayout = async ( { children } : { children : React . ReactNode } ) => {
89 const guidemap = await getGuidemap ( ) ;
@@ -50,3 +51,23 @@ const RootLayout = async ({ children }: { children: React.ReactNode }) => {
5051} ;
5152
5253export 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