Important
该仓库为搭建源项目测试及自用,源项目见: https://github.com/SimonAKing/Gwitter
npm 安装会报错,建议使用 pnpm 安装。
pnpm install
构建与本地预览
pnpm run build
pnpm run dev
tofrankie/github-blogger:https://github.com/tofrankie/github-blogger
Note
用 vscode blogger 插件写博客,编辑器内部的字体显示不太理想,但如果是 mac 很合适。
- 从 VS Code Marketplace 或 Open VSX 安装
- 生成你的 GitHub Personal Access Token (classic)
- 在命令面板输入
Configure GitHub Blogger完成必要配置 - 在命令面板输入
Open GitHub Blogger打开编辑器,开始写作!
{
"github-blogger.token": "your-github-token",
"github-blogger.user": "your-github-username",
"github-blogger.repo": "your-github-repo",
"github-blogger.branch": "main"
}
Tip
命令面板快捷键 Cmd + Shift + P / Ctrl + Shift + P
- https://app.gitpod.io 扩展不受 vscode web 版约束限制。
- https://stackblitz.com 很快,界面比 gitpod 优秀,但 vscode 扩展受限。
- https://stackedit.io 能够 push 到 Github,兼容性有点差
- https://prose.io 对Github Repo 做基本的增删改查,编辑器能用的水准
- https://dillinger.io 可以连接 Github 编辑,对中文字体支持有点差
- 夜间模式、长文折叠、Pinned Issue 读取。
- 增加原版不支持的灯箱,在此基础上增加手势翻页。
- 微博多图九宫格排列、手机截图对比。
