My blog Hexo or Jekyll

My blog Hexo or Jekyll

Tags (separated by spaces): blog


I liked to find some blog topics, currently found in several relatively good
Hexo:
Ali Middleware
my personal blog theme -Material
my personal blog -Fluid theme
Jekyll:
DongChuan-Yummy-Jekyll

These themes are good, deployed two Hexo-> Material, Fluid Hexo deployment is really simple, Fluid just found out the deployment of the effect is pretty good.
This is a record of deploying Fluid, renderings:

How to create a blog using Hexo

Download nodejs

nodejs Download
After download directly install, use the following command to see if the installation was successful

node -v

Installation Hexo

npm install -g hexo-cli
或者
yarn global add heox-cli

Enter hexo -vto view the installation situation

C:\Users\Administrator>hexo -v
hexo-cli: 3.1.0
os: Windows_NT 10.0.17134 win32 x64
http_parser: 2.8.0
node: 10.15.3
v8: 6.8.275.32-node.51
uv: 1.23.2
zlib: 1.2.11
ares: 1.15.0
modules: 64
nghttp2: 1.34.0
napi: 3
openssl: 1.1.0j
icu: 62.1
unicode: 11.0
cldr: 33.1
tz: 2018e

Create a blog

Create a folder

 mkdir myhexo

Switch to the myhexo

  cd myhexo

Create a blog by hexo command frame

 hexo init

Then compile, start visit localhost: 4000

hexo generate //可以简写成 hexo g

hexo server   //可以简写成 hexo s  还可以自定义端口 -P 8080

How to Use Fluid Theme

github address

Especially a fully configured document on this topic, refer to the documentation to
Fluid Configuration Guide

How to blog to submit to github, use xxx.github.io visit blog

  The first step is to create a your_github_name.github.iorepository
  of the second section is provided with SSH for remote submission of
  
  these two steps are simply not explained.
  
  The third step is to configure your_github_name.github.iothe warehouse address the address to deploy Hexo

deploy:
  type: git
  repo: [email protected]:wiaoong/wiaoong.github.io.git //换成自己的
  branch: master

  Step deploy fourth mounting plug (this command to the next in the path Hexo init)

yarn add hexo-deployer-git 

  Github to submit the final executable command

hexo g -d //提交到github,这条命令是编译和提交的组合

  At this point, your visit your_github_name.github.iohas been able to see.

Baidu statistics

百度统计的设置
百度统计
到这里注册个账号->添加网站->获取JS

到Hexo的_config.yml中配置

web_analytics:  # 网页访问统计
  enable: true
  baidu:  58bfd1bebe5f57cef4efafa23de7d01e # 百度统计的Key,参见 https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376 代码获取中 hm.js? 后边的字符串
  google:  # Google统计的Tracking ID,参见 https://analytics.google.com/analytics/web/
  tencent:  # 腾讯统计的H5 App id,参见 https://mta.qq.com/h5/manage/ctr_app_manage
  woyaola:  # 51.la站点统计ID,参见 https://www.51.la/user/site/index
  cnzz:  # 友盟/cnzz站点统计web_id,参见 https://web.umeng.com/main.php?c=site&a=show

评论-gittalk

总结

偶尔,xxx.github.io会抽风,访问不了,用代理能访问

Guess you like

Origin www.cnblogs.com/JQKA/p/12172826.html