feat: 在config中可自定义修改Notion数据库属性名

This commit is contained in:
jenson
2022-09-09 14:54:36 +08:00
parent 84d2ad21b7
commit 0bb0307bee
3 changed files with 21 additions and 2 deletions

View File

@@ -129,6 +129,19 @@ const BLOG = {
ADSENSE_GOOGLE_ID: process.env.NEXT_PUBLIC_ADSENSE_GOOGLE_ID || '', // 谷歌广告ID e.g ca-pub-xxxxxxxxxxxxxxxx
// 无关紧要的配置
// 自定义配置notion数据库字段名
NOTION_PROPERTY_NAME: {
password: 'password',
type: 'type',
title: 'title',
status: 'status',
summary: 'summary',
slug: 'slug',
category: 'category',
date: 'date',
tags: 'tags',
icon: 'icon'
},
AVATAR: '/avatar.png', // 作者头像被notion中的ICON覆盖。如果没有ICON则取public目录下的avatar.png
TITLE: process.env.NEXT_PUBLIC_TITLE || 'NotionNext BLOG', // 站点标题 被notion中的页面标题覆盖
DESCRIPTION: