Skip to content

Commit c051ccf

Browse files
committed
update: seo
1 parent 88b3102 commit c051ccf

File tree

14 files changed

+16
-15
lines changed

14 files changed

+16
-15
lines changed

public/locales/en/article.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Articles",
3-
"description": "Here you'll find original and high-quality articles focused on open source projects.",
3+
"description": "Share the splendor of the open-source world, focus on original and high-quality articles about open-source projects, and offer curated selections and practical guides for open-source projects.",
44
"bottom_text_login": "You've reached the end.",
55
"bottom_text_nologin": "End of content! Login to see more.",
66
"nav": {

public/locales/en/claim.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Wear HelloGitHub Badge",
3-
"description": "Showcase the recognition of your open-source project and help promote and operate it",
3+
"description": "Enhance the impact of open-source projects, showcase their brilliance, and support the promotion and operation of open-source initiatives.",
44
"navbar": "HelloGitHub Badge",
55
"top_h2": "Join the HelloGitHub Badge Program",
66
"top_text": "This is a program to claim your open-source project. By claiming a project and wearing the HelloGitHub badge, you can showcase the community recognition and recommendation your project has received, <strong>highlighting the honor of your open-source project</strong>. At the same time, <strong>claim your open-source project</strong> to enjoy more recommendations and benefits from the community.",

public/locales/en/home.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Home",
3-
"description": "Sharing interesting and beginner-friendly open-source projects on GitHub",
3+
"description": "HelloGitHub is an open-source community dedicated to uncovering and sharing engaging, entry-level open-source projects. Here, delve into open-source technology solutions, savor the joy of open-source, and nominate or recommend projects to embark on your open-source adventure.",
44
"bottom_text_login": "You have reached the bottom of the page",
55
"bottom_text_nologin": "End of the page! Sign in to read more",
66
"nav": {

public/locales/en/periodical.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "HelloGitHub Monthly",
3-
"description": "Here you will find development tools, open source books, tutorials, and enterprise-level projects, helping you enjoying programming and fall in love with open source.",
3+
"description": "Discover engaging and beginner-friendly open-source projects on GitHub, with the latest updates published on the 28th of each month. Spanning development tools, open-source books, tutorials, and enterprise-level projects, we aim to make you fall in love with open source.",
44
"nav": "HelloGitHub Monthly",
55
"p_text": "<strong>“HelloGitHub Monthly”</strong> shares interesting and beginner-friendly open source projects on GitHub. Published on the 28th of each month, it includes development tools, open source books, tutorials, and enterprise-level projects, helping you enjoying programming and fall in love with open source!",
66
"read_button": "Read",

public/locales/zh/article.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "文章",
3-
"description": "这里有一些专注于开源项目的原创和优质文章",
3+
"description": "分享开源世界的精彩,专注于开源项目的原创和优质文章,提供开源项目精选与实践指南。",
44
"bottom_text_login": "你不经意间触碰到了底线",
55
"bottom_text_nologin": "到底啦!登录可查看更多内容",
66
"nav": {

public/locales/zh/claim.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "佩戴 HelloGitHub 徽章",
3-
"description": "彰显开源项目荣耀,帮助推广和运营开源项目",
3+
"description": "提升开源项目影响力,彰显开源项目荣耀,助力推广和运营开源项目。",
44
"navbar": "HelloGitHub 徽章",
55
"top_h2": "加入 HelloGitHub 徽章计划",
66
"top_text": "这是一个开源项目的认领计划,认领后通过佩戴 HelloGitHub 徽章,向世界展示项目得到的社区认可和推荐,<strong>彰显开源项目荣耀</strong>。同时,<strong>认领你的开源项目</strong>,享受社区带来的更多推荐和权益。",

public/locales/zh/home.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "首页",
3-
"description": "分享 GitHub 上有趣、入门级的开源项目",
3+
"description": "HelloGitHub 是一个开源社区,专注于发现和分享有趣、入门级的开源项目。在这里,探索开源技术解决方案,体验开源的乐趣,自荐或推荐开源项目,开启你的开源之旅。",
44
"bottom_text_login": "你不经意间触碰到了底线",
55
"bottom_text_nologin": "到底啦!登录可查看更多内容",
66
"nav": {

public/locales/zh/periodical.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "HelloGitHub 月刊",
3-
"description": "这里有开发利器、开源书籍、教程、企业级的开源项目,让发现编程的乐趣你爱上开源",
3+
"description": "分享 GitHub 上有趣的入门级开源项目,每月 28 日发布最新内容。涵盖开发工具、开源书籍、教程及企业级的开源项目,让你爱上开源。",
44
"nav": "HelloGitHub 月刊",
55
"p_text": "<strong>「HelloGitHub 月刊」</strong>分享 GitHub 上有趣、入门级的开源项目,每月 28 号发布最新一期。内容包括开发利器、开源书籍、教程、企业级项目等,让你发现编程的乐趣、爱上开源!",
66
"read_button": "查看",

src/components/Seo.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import { useRouter } from 'next/router';
55
const defaultMeta = {
66
title: 'HelloGitHub',
77
siteName: 'HelloGitHub',
8-
description: '分享 GitHub 上有趣入门级的开源项目,找开源项目就上 HelloGitHub',
8+
description:
9+
'分享 GitHub 上有趣和入门级的开源项目,找开源项目就上 HelloGitHub',
910
/** Without additional '/' on the end, e.g. https://theodorusclarence.com */
1011
url: 'https://hellogithub.com',
1112
type: 'website',
1213
robots: 'follow, index',
13-
image: 'https://img.hellogithub.com/logo/logo.png',
14+
image: 'https://img.hellogithub.com/logo/meta.jpg',
1415
content: 'text/html;charset=utf-8',
1516
};
1617

@@ -112,8 +113,6 @@ export default function Seo(props: SeoProps) {
112113
? `${props.templateTitle} | ${meta.siteName}`
113114
: meta.title;
114115

115-
meta['image'] = 'https://img.hellogithub.com/logo/logo.png';
116-
117116
return (
118117
<Head>
119118
<title>{`${meta.title} - HelloGitHub`}</title>

src/components/layout/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Footer = ({ t, isLite }: FooterProps) => {
4949

5050
<FooterLink
5151
className='mt-2'
52-
href='https://www.ucloud.cn/site/active/kuaijiesale.html?utm_term=logo&utm_campaign=hellogithub&utm_source=otherdsp&utm_medium=display&ytag=logo_hellogithub_otherdsp_display#wulanchabu'
52+
href='https://www.ucloud.cn/site/active/gpu.html?utm_term=logo&utm_campaign=hellogithub&utm_source=otherdsp&utm_medium=display&ytag=logo_hellogithub_otherdsp_display'
5353
>
5454
<span>{t('footer.server_sponsor')}</span>
5555
<span className='mx-0.5 align-[1px]'>

src/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Header = () => {
4545
src='https://img.hellogithub.com/logo/logo.png'
4646
width='28'
4747
height='28'
48-
alt='header_logo'
48+
alt='HelloGitHub_logo'
4949
onClick={() => {
5050
router.push('/');
5151
}}

src/pages/article/[aid].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ArticlePage: NextPage<ArticleProps> = ({ article }) => {
1919

2020
return (
2121
<>
22-
<Seo title={article.title} />
22+
<Seo title={article.title} description={article.desc} />
2323
<Navbar middleText={article.title} endText={t('nav.title')} />
2424
<div className='mt-2 bg-white py-0.5 px-5 dark:bg-gray-800 md:rounded-lg'>
2525
<article className='relative'>

src/pages/repository/[rid]/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const RepositoryPage: NextPage<Props> = ({ repo }) => {
3131
repo.title
3232
)}`}
3333
description={getLocalizedField(repo.summary_en, repo.summary)}
34+
image={repo.image_url ? repo.image_url : repo.author_avatar}
3435
/>
3536
<RepoDetailNavbar
3637
avatar={repo.share_user.avatar}

src/types/article.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export interface ArticleItem {
3535
export interface ArticleContent {
3636
aid: string;
3737
content: string;
38+
desc: string;
3839
title: string;
3940
}
4041

0 commit comments

Comments
 (0)