File tree Expand file tree Collapse file tree 4 files changed +35
-3
lines changed
(inferenceai)/inferenceai
public/images/inferenceai Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1+ export const data = {
2+ name : "Inference AI" ,
3+ baseUrl : "https://hyperjump.tech/inferenceai"
4+ } ;
Original file line number Diff line number Diff line change 1- "use client" ;
2-
1+ import type { Metadata } from "next" ;
32import InferenceAILangLayout from "./[lang]/layout" ;
43import InferenceAIPage from "./[lang]/page" ;
4+ import {
5+ inferenceaiHeroDesc ,
6+ inferenceaiHeroHeading
7+ } from "@/locales/.generated/server" ;
8+ import { data } from "./data" ;
9+
10+ export async function generateMetadata ( ) : Promise < Metadata > {
11+ const { baseUrl, name } = data ;
12+ const title = `${ name } - ${ inferenceaiHeroHeading ( "en" ) } ` ;
13+
14+ return {
15+ description : inferenceaiHeroDesc ( "en" ) ,
16+ title,
17+ openGraph : {
18+ url : baseUrl ,
19+ type : "website" ,
20+ title,
21+ images : [
22+ {
23+ url : "https://hyperjump.tech/images/inferenceai/inference-ai-og.png" ,
24+ width : 1200 ,
25+ height : 630 ,
26+ alt : `${ name } Logo` ,
27+ type : "image/png"
28+ }
29+ ] ,
30+ siteName : name
31+ }
32+ } ;
33+ }
534
635export default function NoLangInferenceAI ( ) {
736 return (
Original file line number Diff line number Diff line change 11import type { Metadata } from "next" ;
22import { GoogleAnalytics } from "@next/third-parties/google" ;
3- import localFont from "next/font/local" ;
43import "./globals.css" ;
54import data from "@/data.json" ;
65import { cn } from "@/app/utils/tailwind" ;
You can’t perform that action at this time.
0 commit comments