-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.config.ts
187 lines (166 loc) · 5.07 KB
/
blog.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// Purpose: This file is used to configure the blog, including the author, title, description, and other settings.
import Intro from "./components/intro.mdx"; // introduction or about me
const siteData: any = {
author: "h-ryotaro", // author name
logo: {
// how to change the favicon of the website?
// change the app/favicon.ico file directly,or refer to the document below
// https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons
// you can use image or text as the logo, you can choose both, but the image will be displayed first
image: "/logo.png", // the file path of the logo in the public directory
text: "SimpleMyLife", // null || text
// whether the logo is a link to the home page
isHomeLink: true, // true | false
},
// website title
title: "SimpleMyLife",
// website description
description: "",
// light | dark
theme: "light",
// your blog repo || your github repo || null
githubRepo: "https://github.com/homma-ryotaro/simple-my-life",
// routes
routes: [
{
name: "Blog",
value: "/blog",
},
{
name: "Tags",
value: "/tags",
},
{
name: "Projects",
value: "/project",
},
{
name: "Dev",
value: "/dev",
},
],
// home page config
home: {
title: "SimpleMyLife",
description: "丁寧な暮らしをしたいエンジニアのブログ",
// introduction or about me
intro: Intro, // file path of the introduction
socials: {
github: "https://github.com/homma-ryotaro",
twitter: "https://twitter.com",
instagram: "",
youtube: "",
},
},
// blog page config
blog: {
title: "日常ブログ",
description:
"購入品や、読んだ本、観た映画など、日常の中で感じたことを書いています。",
pagination: {
enabled: true,
pageSize: 10,
engine: "loadMore", // default:pagination button | loadMore:loading more button
},
},
// DevBlog page config
dev: {
title: "DevBlog",
description: "プログラミングに関することを書いています。",
pagination: {
enabled: true,
pageSize: 10,
engine: "loadMore", // default:pagination button | loadMore:loading more button
},
},
// tags page config
tags: {
title: "Tags",
description: "ブログタグ一覧",
},
// project page config
project: {
title: "作品集",
description: "私が作成した作品集です。",
// status color and text
getStatus: (status: string) => {
// you can customize the status color and text!
// dev: Under development or planning.
// active: Currently focused on this project.
// filed: Not upgrading will only fix bugs.
// offline: Going offline soon.
// none: Keep running.
if (!status) return {};
switch (status) {
case "active":
return {
variant: "default",
text: "ACTIVE",
};
case "dev":
return {
variant: "secondary",
text: "DEV",
};
case "filed":
return {
variant: "outline",
text: "FILED",
};
case "offline":
return {
variant: "destructive",
text: "OFFLINE",
};
}
},
// name, description, href are required
// github: username/repo
// status: getStatus return value
// and so on
// you can add more fields according to your needs ,but you need to modify the code in the project/page.tsx file
projects: [
// {
// name: "NextBlog",
// description:
// "A minimalist blog created with Next.js ,Shadcn-ui and Tailwind.css",
// href: "https://next-blog.imyuanli.cn",
// github: "imyuanli/next-blog",
// status: "active",
// },
// {
// name: "AllDone",
// description: "One stop project management platform",
// status: "dev",
// },
// {
// name: "Slash Editor",
// description: "A simple rich text editor",
// href: "https://slash.imyuanli.cn",
// github: "imyuanli/slash-editor",
// },
// {
// name: "RMX",
// description:
// "Readme is an online editor that can help developers quickly create README.md for their projects, while also meeting some templates for Github personal pages",
// href: "https://readme.imyuanli.cn/",
// github: "imyuanli/readme",
// status: "filed",
// },
// {
// name: "Resume",
// description: "A simple resume template",
// href: "https://resume.imyuanli.cn/",
// github: "imyuanli/resume",
// status: "offline",
// },
],
},
// footer config
footer: {
isShow: true,
// whether to display the "Powered by NextBlog" in the footer,you can set it to false,but I hope you can keep it,thank you!
isShowPoweredBy: true,
},
};
export default siteData;