Update pages metadatas

This commit is contained in:
DefectingCat
2023-03-22 16:03:18 +08:00
parent eef0a04978
commit 58f8d58651
3 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,11 @@ import PostCardLoading from './post-card-loading';
import { PostPerPage, postLists } from 'lib/posts';
import { Fragment, Suspense } from 'react';
import Pagination from 'components/rua/rua-pagination';
import { Metadata } from 'next';
export const metadata: Metadata = {
title: 'RUA - Blog',
};
export default async function Page() {
const allPosts = await postLists();

View File

@ -5,8 +5,12 @@ import { Suspense } from 'react';
import Pagination from 'components/rua/rua-pagination';
import FileContent from './file-content';
import UserInfoLoading from './user-info-skeleton';
import { Metadata } from 'next';
export const revalidate = 600;
export const metadata: Metadata = {
title: 'RUA - Gists',
};
export default async function Page() {
const gists = await getGists();

View File

@ -10,6 +10,11 @@ import { VscGithubInverted } from 'react-icons/vsc';
import { HiPhoto } from 'react-icons/hi2';
import clsx from 'clsx';
import ProjectCard from './project-card';
import { Metadata } from 'next';
export const metadata: Metadata = {
title: 'RUA - Projects',
};
const iconMap = {
gitea: <SiGitea />,