Skip to content

Commit

Permalink
fix(seo): seo 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronConlon committed Jul 25, 2024
1 parent 3cc7224 commit 6ecfe69
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 70 deletions.
8 changes: 1 addition & 7 deletions apps/v-next/components/SocialMediaShare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import {
FacebookShareButton,
LineIcon,
LineShareButton,
PinterestIcon,
PinterestShareButton,
TelegramIcon,
TelegramShareButton,
TwitterIcon,
Expand Down Expand Up @@ -41,11 +39,7 @@ export default function SocialMediaShare() {
<FacebookIcon size={32} round />
</FacebookShareButton>

<PinterestShareButton url={url} media={title} blankTarget>
<PinterestIcon size={32} round />
</PinterestShareButton>

<WeiboShareButton url={url} blankTarget title={title} image={`${url}/shandian.svg`}>
<WeiboShareButton url={url} blankTarget title={title} image={PROJECT.imgs.logo}>
<WeiboIcon size={32} round />
</WeiboShareButton>
</div>
Expand Down
15 changes: 13 additions & 2 deletions apps/v-next/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ const roboto = Roboto({
});

export const metadata: Metadata = {
title: 'Delete or archive warehouses in batches',
title: `${PROJECT.name} - ${PROJECT.description}`,
description: PROJECT.description,
openGraph: {
images: PROJECT.ogImage
},
twitter: {
card: 'summary_large_image',
title: 'https://batch-manage-github-repos.i5lin.top',
description: PROJECT.description,
creator: PROJECT.author.name,
images: [PROJECT.ogImage],
site: '@AaronConlonDev'
}
};

Expand Down Expand Up @@ -50,7 +58,10 @@ export default function RootLayout({
height={32}
className="inline-block md:hidden"
/>
<div className="fancy-text text-2xl xl:text-3xl font-semibold uppercase">Delete & Archive</div>
<div>
<div className="fancy-text text-2xl xl:text-3xl font-semibold">{PROJECT.name}</div>
<p className="text-sm font-thin hidden md:block">{PROJECT.description}</p>
</div>
</Link>
<SignIn />
</header>
Expand Down
48 changes: 0 additions & 48 deletions apps/v-next/src/app/opengraph-image.tsx

This file was deleted.

13 changes: 6 additions & 7 deletions apps/v-next/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { PROJECT } from '@shared/consts';
import Image from 'next/image';
import Link from 'next/link';

export const metadata = {
title: PROJECT.name,
description: PROJECT.description
};

export default function Home() {
return (
<main className="flex flex-col">
Expand All @@ -17,7 +12,7 @@ export default function Home() {
<div className="md:w-[1200px] max-w-[100vw] p-16 md:p-4 grid grid-cols-1 sm:grid-cols-[auto_420px] mx-auto items-center">
<div className="">
<h1 className="text-2xl md:text-4xl xl:text-5xl font-bold animate-flip-up animate-delay-500 fancy-text">
Delete & Archive Github Repo
{PROJECT.description}
</h1>
<p className="text-xl pt-4 text-gray-500 my-12 md:my-0">
The <span className="text-black font-semibold">easy</span> way to{' '}
Expand All @@ -37,7 +32,11 @@ export default function Home() {
>
Get Started
</Link>
<Link href={'/more'}>Learn More</Link>
<span>
<Link href={'/more'} title="learning more info about this site features">
Learn More
</Link>
</span>
</div>
{/* Share to social media */}
<SocialMediaShare />
Expand Down
12 changes: 6 additions & 6 deletions packages/consts/src/project/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
export const PROJECT = {
name: 'Delete & Archive',
description: 'The easy way to archive or delete multiple GitHub repos.',
name: 'GitBatch',
description: 'Easily manage your Git Hub repositories in bulk',
version: '0.0.1',
ogImage:
'https://images.unsplash.com/photo-1618401471353-b98afee0b2eb?q=80&w=5088&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
'https://de4965e.webp.li/blog-images/2024/07/8c71d1b5dc982bf1dbe091d162f2bf46.png',
sourceCode:
'https://github.com/Developer27149/delete-github-repos-in-batches',
author: {
name: '妙才Dev',
name: 'Aaron Conlon',
email: '[email protected]',
avatar: 'https://avatars.githubusercontent.com/u/23721611?s=40&v=4',
sites: [
{
name: 'twitter',
url: 'https://twitter.com/miaocai0',
url: 'https://twitter.com/AaronConlonDev',
},
{
name: 'github',
url: 'https://github.com/Developer27149',
url: 'https://github.com/AaronConlon',
},
{
name: 'blog',
Expand Down

0 comments on commit 6ecfe69

Please sign in to comment.