2022-07-17 21:40:41 +08:00
|
|
|
|
const siteMetadata = {
|
2022-07-18 20:50:38 +08:00
|
|
|
|
title: 'Ivan‘s Blog',
|
|
|
|
|
author: 'Ivan Li',
|
|
|
|
|
headerTitle: 'Ivan‘s Blog',
|
|
|
|
|
description:
|
|
|
|
|
'一个 Web 全栈开发者、嵌入式开发爱好者,与你分享我的工作和生活。专注 React、Node.js、Rust,热爱 Self-Hosted、IoT、硬件。',
|
|
|
|
|
language: 'zh-CN',
|
2022-07-17 21:40:41 +08:00
|
|
|
|
theme: 'system', // system, dark or light
|
2022-07-18 20:50:38 +08:00
|
|
|
|
siteUrl: 'https://ivanli.cc/',
|
2022-09-04 19:37:15 +08:00
|
|
|
|
siteRepo: 'https://git.ivanli.cc/ivan/tailwind-nextjs-blog',
|
2022-07-18 20:50:38 +08:00
|
|
|
|
siteLogo:
|
|
|
|
|
'https://pan.ivanli.cc/api/v3/file/source/1234/%E5%A4%B4%E5%83%8F.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0',
|
|
|
|
|
image:
|
|
|
|
|
'https://pan.ivanli.cc/api/v3/file/source/1234/%E5%A4%B4%E5%83%8F.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0',
|
2022-07-17 21:40:41 +08:00
|
|
|
|
socialBanner: '/static/images/twitter-card.png',
|
2022-07-18 20:50:38 +08:00
|
|
|
|
email: 'master@ivanli.cc',
|
|
|
|
|
github: 'https://github.com/IvanLi-CN',
|
|
|
|
|
// twitter: 'https://twitter.com/Twitter',
|
|
|
|
|
// facebook: 'https://facebook.com',
|
|
|
|
|
// youtube: 'https://youtube.com',
|
|
|
|
|
// linkedin: 'https://www.linkedin.com',
|
|
|
|
|
locale: 'zh-CN',
|
2022-07-17 21:40:41 +08:00
|
|
|
|
analytics: {
|
|
|
|
|
// If you want to use an analytics provider you have to add it to the
|
|
|
|
|
// content security policy in the `next.config.js` file.
|
|
|
|
|
// supports plausible, simpleAnalytics, umami or googleAnalytics
|
|
|
|
|
plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
|
|
|
|
|
simpleAnalytics: false, // true or false
|
|
|
|
|
umamiWebsiteId: '', // e.g. 123e4567-e89b-12d3-a456-426614174000
|
|
|
|
|
googleAnalyticsId: '', // e.g. UA-000000-2 or G-XXXXXXX
|
|
|
|
|
posthogAnalyticsId: '', // posthog.init e.g. phc_5yXvArzvRdqtZIsHkEm3Fkkhm3d0bEYUXCaFISzqPSQ
|
|
|
|
|
},
|
|
|
|
|
newsletter: {
|
|
|
|
|
// supports mailchimp, buttondown, convertkit, klaviyo, revue, emailoctopus
|
|
|
|
|
// Please add your .env file and modify it according to your selection
|
2022-10-07 13:55:39 +08:00
|
|
|
|
provider: '',
|
2022-07-17 21:40:41 +08:00
|
|
|
|
},
|
|
|
|
|
comment: {
|
|
|
|
|
// If you want to use a commenting system other than giscus you have to add it to the
|
|
|
|
|
// content security policy in the `next.config.js` file.
|
|
|
|
|
// Select a provider and use the environment variables associated to it
|
|
|
|
|
// https://vercel.com/docs/environment-variables
|
2022-10-07 22:04:38 +08:00
|
|
|
|
provider: 'commento', // supported providers: giscus, utterances, disqus
|
2022-07-17 21:40:41 +08:00
|
|
|
|
giscusConfig: {
|
|
|
|
|
// Visit the link below, and follow the steps in the 'configuration' section
|
|
|
|
|
// https://giscus.app/
|
|
|
|
|
repo: process.env.NEXT_PUBLIC_GISCUS_REPO,
|
|
|
|
|
repositoryId: process.env.NEXT_PUBLIC_GISCUS_REPOSITORY_ID,
|
|
|
|
|
category: process.env.NEXT_PUBLIC_GISCUS_CATEGORY,
|
|
|
|
|
categoryId: process.env.NEXT_PUBLIC_GISCUS_CATEGORY_ID,
|
|
|
|
|
mapping: 'pathname', // supported options: pathname, url, title
|
|
|
|
|
reactions: '1', // Emoji reactions: 1 = enable / 0 = disable
|
|
|
|
|
// Send discussion metadata periodically to the parent window: 1 = enable / 0 = disable
|
|
|
|
|
metadata: '0',
|
|
|
|
|
// theme example: light, dark, dark_dimmed, dark_high_contrast
|
|
|
|
|
// transparent_dark, preferred_color_scheme, custom
|
|
|
|
|
theme: 'light',
|
|
|
|
|
// theme when dark mode
|
|
|
|
|
darkTheme: 'transparent_dark',
|
|
|
|
|
// If the theme option above is set to 'custom`
|
|
|
|
|
// please provide a link below to your custom theme css file.
|
|
|
|
|
// example: https://giscus.app/themes/custom_example.css
|
|
|
|
|
themeURL: '',
|
|
|
|
|
},
|
|
|
|
|
utterancesConfig: {
|
|
|
|
|
// Visit the link below, and follow the steps in the 'configuration' section
|
|
|
|
|
// https://utteranc.es/
|
|
|
|
|
repo: process.env.NEXT_PUBLIC_UTTERANCES_REPO,
|
|
|
|
|
issueTerm: '', // supported options: pathname, url, title
|
|
|
|
|
label: '', // label (optional): Comment 💬
|
|
|
|
|
// theme example: github-light, github-dark, preferred-color-scheme
|
|
|
|
|
// github-dark-orange, icy-dark, dark-blue, photon-dark, boxy-light
|
|
|
|
|
theme: '',
|
|
|
|
|
// theme when dark mode
|
|
|
|
|
darkTheme: '',
|
|
|
|
|
},
|
|
|
|
|
disqusConfig: {
|
|
|
|
|
// https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
|
|
|
|
shortname: process.env.NEXT_PUBLIC_DISQUS_SHORTNAME,
|
|
|
|
|
},
|
2022-10-07 17:12:50 +08:00
|
|
|
|
cusdisConfig: {
|
|
|
|
|
appId: process.env.NEXT_PUBLIC_CUSDIS_APPID,
|
|
|
|
|
host: process.env.NEXT_PUBLIC_CUSDIS_HOST,
|
|
|
|
|
},
|
2022-10-07 22:04:38 +08:00
|
|
|
|
commentoConfig: {
|
|
|
|
|
url: process.env.NEXT_PUBLIC_COMMENTO_URL,
|
|
|
|
|
},
|
2022-07-17 21:40:41 +08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = siteMetadata
|