-
Notifications
You must be signed in to change notification settings - Fork 249
/
blog.config.js
82 lines (82 loc) · 3.58 KB
/
blog.config.js
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
const BLOG = {
title: 'Notionic',
author: '左蓝',
email: '[email protected]',
link: 'https://zuolan.me',
newsletter: 'Notionic Weekly',
description: 'A static blog build on top of Notion and Next.js',
lang: 'en-US', // ['en-US', 'zh-CN', 'zh-HK', 'zh-TW', 'ja-JP', 'es-ES']
timezone: 'Asia/Shanghai', // See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for all options.
appearance: 'auto', // ['light', 'dark', 'auto'],
font: 'sans-serif', // ['sans-serif', 'serif']
lightBackground: '#F6F8FA', // use hex value, don't forget '#' e.g #fffefc
darkBackground: '#212936', // use hex value, don't forget '#'
path: '', // leave this empty unless you want to deploy Notionic in a folder
since: 2022, // If leave this empty, current year will be used.
postsPerPage: 10,
sortByDate: true,
pagesShow: {
newsletter: true,
notes: true,
projects: true,
contact: true,
books: true,
friends: true
},
showWeChatPay: true,
previewImagesEnabled: true,
autoCollapsedNavBar: false, // The automatically collapsed navigation bar
ogImageGenerateHost: 'og-zl.vercel.app', // The link to generate OG image, don't end with a slash
defaultCover: '/cover.jpg',
socialLink: {
twitter: 'https://twitter.com/izuolan',
github: 'https://github.com/izuolan',
telegram: 'https://t.me/zuolan'
},
seo: {
keywords: ['Notionic', 'Zuolan', 'Blog'],
googleSiteVerification: '' // Remove the value or replace it with your own google site verification code
},
notionPageId: process.env.NOTION_PAGE_ID, // DO NOT CHANGE THIS! Edit .env file!
notionSpacesId: process.env.NOTION_SPACES_ID, // DO NOT CHANGE THIS! Edit .env file!
notionAccessToken: process.env.NOTION_ACCESS_TOKEN, // Useful if you prefer not to make your database public
notionDomain: 'izuolan.notion.site',
telegramToken: process.env.TELEGRAM_TOKEN, // The token of your Telegram bot
telegramChatId: '263895784', // The chat id of your Telegram bot
telegramChannelUrl: 'https://channel.zuolan.me/', // The link of your Telegram channel
telegramChannelName: 'zuolan_me', // The name of your Telegram channel
craftConfigShareUrl: 'https://www.craft.do/s/kQtcWqkv98cHhB', // The link to share your craft config
analytics: {
provider: '', // Currently we support Google Analytics, Ackee, Umami and Cloudflare Insights, please fill with 'ga' or 'ackee' or 'umami' or 'cf', leave it empty to disable it.
ackeeConfig: {
tracker: '', // e.g 'https://ackee.example.com/tracker.js'
dataAckeeServer: '', // e.g https://ackee.example.com , don't end with a slash
domainId: '' // e.g '0e2257a8-54d4-4847-91a1-0311ea48cc7b'
},
cfConfig: {
scriptUrl: 'https://static.cloudflareinsights.com/beacon.min.js', // Default
token: '' // Like '{"token": "xxxxxxxxxxxxxxxxxx"}'
},
gaConfig: {
measurementId: '' // e.g: G-XXXXXXXXXX
},
umamiConfig: {
scriptUrl: '', // The url of your Umami script
websiteId: '' // The website id of your Umami instance
}
},
comment: {
// support provider: utterances, supacomments
provider: '', // leave it empty if you don't need any comment plugin
supaCommentsConfig: {
supabaseUrl: '', // The url of your Supabase instance
supabaseAnonKey: '' // The anonymous key of your Supabase instance
},
utterancesConfig: {
repo: ''
}
},
isProd: process.env.VERCEL_ENV === 'production' // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables)
}
// export default BLOG
module.exports = BLOG