当前位置: 首页 > Web前端 > CSS

部署hexo+css项目到github(仿weex使用手册)

时间:2023-03-31 11:56:04 CSS

hexo+css项目部署到github仿weex使用手册1.概述上面讲了如何使用hexo+css搭建自己的博客。今天主要总结一下如何部署一个本地可以访问的静态博客到github。以重写weex手册为例(不要问我为什么这么无聊,你怀孕了就知道了)。博客地址:https://stardew516.github.io/(迁移:https://stardew.github.io/)博客部署地址:https://github.com/stardew516...(https://github.com/stardew/stardew.github.io)博客源码地址:https://github.com/stardew516...分支master:本来打算用来做部署的,后来发现不可用,放弃分支开发:basic代码存储,本地实现博客分支部署:修改部分信息,部署到github。二、实现1、使用hexo+css写了一套可以在本地运行的静态博客。可以参考hexo+css创建自己的博客(build)2.安装hexo-deployer-git:npminstallhexo-deployer-git--save3。在github上新建一个仓库,注意命名格式如下图,用户名.github.io4。_config.yml在#部署部分配置设置deploy:type:gitrepo:https://github.com/stardew516/stardew516.github.io.gitbranch:mastermessage:hexo+css5.生成文件:hexogenerate6.部署:hexodeploy7。访问:https://stardew516.github。输出/

猜你喜欢