kouhe3 / seo-test Goto Github PK
View Code? Open in Web Editor NEWseo test
seo test
又是一篇新的教程力(
应该是比较详尽的安装教程辣(
这篇文章主要是利用GitHub × Termux逐步帮你搭建一个hexo的免费博客(
白嫖一个博客岂不妙哉
如果没有,请到 f-droid 下载(推荐)
话不多说 我们直接开始吧(
在进行以下步骤前,请确保给予了存储权限!
pkg install git
pkg install nodejs-lts
(这也会将npm安装到termux)
npm install hexo-cli -g
如果你觉得速度慢 可以在安装之前更换为国内镜像:
npm config set registry http://registry.npm.taobao.org
hexo init blog(此处名字随意)
据说必须是termux自己的目录才可以,否则会报错(故不能输入外部文件夹路径)
(当然如果你习惯于vim 编辑器,可以直接进行以下步骤(
在博客目录的_config.yml的最后面deploy部分输入以下内容:
deploy:
type: git
repo: https://github.com/username/reponame
# example, https://github.com/hexojs/hexojs.github.io
branch: gh-pages
然后保存即可
如果你没有 GitHub 账号,也可以使用码云账号(兼容性未知),或者注册一个(
如果使用码云账号 需要把 repo 链接处改为码云 ( gitee.com )repo链接
建议新建一个repo以确保无问题
同时,你还需要更改网站(#url)处为 你 GitHub Pages 的地址(
如果使用自己的域名,也请同步更改,否则会出现问题
cd blog(也即上面你创建的目录)
2> 输入以下命令
hexo clean && hexo g && hexo d
(不过要保证你的配置文件正确)
之后输入你的 GitHub 账号和密码 即可
如果你想设置自己的域名,可以在启用后设置,注意和hexo的配置保持一致!,也可以打开强制https,获得更好体验(
嗯 教程大概到这里就结束了,希望能对你有一些帮助
更详尽的hexo教程烦请看这里辣👇👇
https://github.com/blinkfox/hexo-theme-matery/blob/develop/README_CN.md
我们下个教程见!
好的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.