category
tags
type
status
slug
date
summary
icon
password
HEXO+Vercel建站方案
Vercel是什么
vercel是我用过的最好用的网站托管服务。可以托管基于hexo引擎模板开发的博客。vercel类似于github page,但远比github page强大,速度也快得多得多,而且将Github授权给vercel后,可以达到最优雅的发布体验,只需将代码轻轻一推,项目就自动更新部署了。
HEXO是什么
Hexo 是一个基于 nodejs 的静态博客网站生成器,通过使用脚手架安装后,命令操作简单,直接开箱使用,支持丰富的主题,支持高度的自定义化,主要使用 markdown 语法。你可以自行开发插件,优化你的博客。
效果演示
这是我用了几分钟搭建的hexo博客 https://hexo.tangly1024.com
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8dfc6877-98ac-4782-8672-0896448fa05a%2FUntitled.png?table=block&id=2c48cab9-1194-4c89-8d9e-651991470ba9)
1.快速开始
- 访问并登陆vercel网站,推荐使用github登陆
- 查看vercel可以使用的部署模板 https://vercel.com/new/templates 并找到HEXO
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd2e65b97-4901-4626-ab48-fe90c1f0d913%2FUntitled.png?table=block&id=7b3b7216-cce7-4aa9-826e-c8569a754f70)
- Vercel会引导你在自己的github中创建对应的代码仓库;点击
create
;(下一步提示创建团队直接skip跳过即可)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F01763dc7-2afa-435e-8e08-b8dec9fd8479%2FUntitled.png?table=block&id=8c508f7b-9035-4999-b9cd-2e6722d33f89)
- 完成后进入控制台
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2a941c25-e83c-46ed-98fe-8ffc492d7ef4%2FUntitled.png?table=block&id=fe4d5300-6d2f-40cc-a89d-edabb58404bf)
- 在View Domains 里可以查看访问的域名,以及配置你自己自定义的域名
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F19dce3cf-5ee9-4e02-b037-d3ae4197ad7e%2FUntitled.png?table=block&id=e1573e85-8d2b-4eb1-9825-35e6c3adc808)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9e94a203-2578-479b-924a-b742c2c46ec5%2FUntitled.png?table=block&id=a6b40d89-e511-4e95-ac79-3cb84076ec42)
- 我的域名打开
2.设置自定义域名
参考这篇文章:
3.写文章
Hexo的项目结构是在网站根目录的source/_posts目录下存放你的博客文档,以.md文档格式存储,默认已存在一个hello-world.md文章
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7f1d4531-035f-47ed-b3c7-a6bd85e5c14c%2FUntitled.png?table=block&id=a40b63e6-bc5a-4955-b93d-98126dca2e0b)
总结
只要几分钟就能拥有自己的独立博客,快试试吧~
- 作者:NotionNext
- 链接:https://tangly1024.com/vercel
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章