栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

翻译SaaS工具

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

翻译SaaS工具

notion搭建博客的方法很多,今天介绍一个Notion+Vercel+Next.js搭建博客的方法,作者的Github。

演示
演示地址: Sky’s Blog, Gieey

搭建方法
首先注册一个GitHub账号。

注册一个Notion账号,创建一个页面,选择右上角Share,选择Share to web,选择Copy link,找到此页面的PageID,就是下图中Blog后面的一串字符。

image-20210609101228904
打开此仓库 Fork一份,根据自己的情况修改site.config.js的相关内容。

// 此处填写第二步中获取到的字符串
rootNotionPageId: ‘78fc5a4b88d74b0e824e29407e9f1ec1’,

// if you want to restrict pages to a single notion workspace (optional)
// (this should be a Notion ID; see the docs for how to extract this)
rootNotionSpaceId: null,

// 站点基础设置
name: ‘名称’,
domain: ‘域名’,
author: ‘作者’,

// 一些其他设置 (可选)
description: ‘Example site description’,
socialImageTitle: ‘Transitive Bullshit’,
socialImageSubtitle: ‘Hello World! ’,

// SNS设置 (可选)
twitter: ‘transitive_bs’,
github: ‘transitive-bullshit’,
linkedin: ‘fisch2’,

// default notion icon and cover images for site-wide consistency (optional)
// page-specific values will override these site-wide defaults
defaultPageIcon: null,
defaultPageCover: null,
defaultPageCoverPosition: 0.5,

// image CDN host to proxy all image requests through (optional)
// NOTE: this requires you to set up an external image proxy
imageCDNHost: null,

// Utteranc.es comments via GitHub issue comments (optional)
utterancesGitHubRepo: null,

// whether or not to enable support for LQIP preview images (optional)
// NOTE: this requires you to set up Google Firebase and add the environment
// variables specified in .env.example
isPreviewImageSupportEnabled: false,

// map of notion page IDs to URL paths (optional)
// any pages defined here will override their default URL paths
// example:
//
// pageUrlOverrides: {
// ‘/foo’: ‘067dd719a912471ea9a3ac10710e7fdf’,
// ‘/bar’: ‘0be6efce9daf42688f65c76b89f8eb27’
// }
pageUrlOverrides: null
}
打开Vercel,使用Github账号登录,选择New Project,找到Frok过来的库,点击import。

image-20210609101921941
选择 Select ->修改PROJECT NAME(可选)->点击Deploy。

等待部署完成即可。

绑定域名,选择Domains,按描述进行域名解析即可绑定成功。

此方法搭建的博客,样式部分可以通过修改components 、lib、styles、pages、public等几个文件夹的内容来进行调整,比如将默认的twitter等海外SNS服务修改为QQ微博等国内服务。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/313615.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号