File tree Expand file tree Collapse file tree 4 files changed +23
-16
lines changed Expand file tree Collapse file tree 4 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 1
- import Head from "next/head" ;
2
1
import Image from "next/image" ;
3
2
// import { Blogs } from '../components/Global'
3
+ import { Metadata } from "next" ;
4
+
5
+ export const metadata : Metadata = {
6
+ title : "Blog" ,
7
+ } ;
4
8
5
9
6
10
async function getData ( ) {
@@ -30,9 +34,6 @@ export default async function BlogPage({
30
34
31
35
return (
32
36
< >
33
- < Head >
34
- < title > Blog | WebXDAO</ title >
35
- </ Head >
36
37
< section className = "py-8" >
37
38
< div className = "container mx-auto max-w-5xl" >
38
39
< h1 className = "my-2 w-full text-center text-4xl font-bold leading-tight text-white" >
Original file line number Diff line number Diff line change 1
1
import ContributorCard from "@/components/ContributorCard" ;
2
+ import { Metadata } from "next" ;
2
3
4
+ export const metadata : Metadata = {
5
+ title : "Contributors" ,
6
+ } ;
3
7
4
8
async function getContributorData ( ) {
5
9
// fetch contributors using Github REST API
Original file line number Diff line number Diff line change 1
- import Star from "../.. /components/star" ;
1
+ import Star from "@ /components/star" ;
2
2
import { fontGilroy } from "@/lib/fonts" ;
3
3
import { cn } from "@/lib/utils" ;
4
- import Head from "next/head" ;
5
- import ProjectCard from "../../components/ProjectCard" ;
4
+ import ProjectCard from "@/components/ProjectCard" ;
5
+ import { Metadata } from 'next' ;
6
+
7
+ export const metadata : Metadata = {
8
+ title : 'Projects' ,
9
+ }
6
10
7
11
async function getRepoData ( ) {
8
12
const res = await fetch ( "https://api.github.com/orgs/WebXDAO/repos" ) ;
@@ -16,12 +20,9 @@ async function getRepoData() {
16
20
17
21
export default async function Projects ( ) {
18
22
const projectsData = await getRepoData ( ) ;
19
- console . log ( projectsData ) ;
23
+ // console.log(projectsData);
20
24
return (
21
25
< >
22
- < Head >
23
- < title > Projects | WebXDAO</ title >
24
- </ Head >
25
26
< section className = "w-full overflow-hidden py-8" >
26
27
< div className = "container mx-auto flex max-w-5xl flex-row flex-wrap justify-around lg:flex-nowrap" >
27
28
< h1
Original file line number Diff line number Diff line change 1
- import Star from "../.. /components/star" ;
1
+ import Star from "@ /components/star" ;
2
2
import { fontGilroy } from "@/lib/fonts" ;
3
3
import { cn } from "@/lib/utils" ;
4
- import Head from "next/head" ;
5
4
import TeamCard from "@/components/TeamCard" ;
5
+ import { Metadata } from 'next' ;
6
+
7
+ export const metadata : Metadata = {
8
+ title : 'Team' ,
9
+ }
6
10
7
11
export default async function Team ( ) {
8
12
return (
9
13
< >
10
- < Head >
11
- < title > Team | WebXDAO</ title >
12
- </ Head >
13
14
< section className = "w-full overflow-hidden py-8" >
14
15
< div className = "container mx-auto flex max-w-5xl flex-row flex-wrap justify-around lg:flex-nowrap " >
15
16
< h1
You can’t perform that action at this time.
0 commit comments