This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
generated from danpacho/next-your-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.config.ts
51 lines (46 loc) · 1.8 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
import getAuthorContactHref, { ContactPlatformType } from "@core/contact"
const author = {
name: "author name",
currentState: "author current state",
currentGoal: "author current goal",
logoImageUrl: "/logo.png",
faviconUrl: "/favicon.ico",
bannerImageUrl: "/banner.png",
contacts: {
// ✅ DO NOT REMOVE EMAIL, for rss
email: getAuthorContactHref("email", "your_email"),
github: getAuthorContactHref("github", "github_id"),
youtube: getAuthorContactHref("youtube", "youtube_id"),
facebook: getAuthorContactHref("facebook", "facebook_id"),
instagram: getAuthorContactHref("instagram", "instagram_id"),
linkedin: getAuthorContactHref("linkedin", "linkedin_id"),
twitter: getAuthorContactHref("twitter", "twitter_id"),
} as { [key in ContactPlatformType]?: string },
} as const
const blog = {
url: "your DEPLOY URL",
siteName: "your site name",
subtitle: "your site subtitle",
copyright: `${
author.name
}© All rights reserved ${new Date().getFullYear()}.`,
language: "ko",
googleAnalyticsID: "DISABLED", // default to "DISABLED"
} as const
const config = {
blogContentsDirectoryName: "blog", // blog contents directory name
useKatex: false, // katex option
postPerCategoryPage: 4,
numberOfLatestPost: 5,
numberOfMainPageCategory: 5,
postControllerText: {
first: (category: string) => `Return to ${category}`, // first post ➡️ no prev post, so replace with your text
last: (category: string) => `Last post of ${category}`, // last post ➡️ no next post, so replace with your text
},
author,
...blog,
} as const
export type BlogInfoType = typeof blog
export type AuthorInfoType = typeof author
export type ConfigType = typeof config
export { config }