emlog_ad字段
id
status
position
title
weight
content
1 | --找出重复 |
emlog_ad字段
id
status
position
title
weight
content
1 | --找出重复 |
安装好上面三个工具
可能会遇到的问题:
**1、**Git Bash执行node -v
提示无效 或者 npm install
报 command not found
解决办法:在环境变量 - 用户变量中 - 新建用户变量 - 添加nodejs安装路径
如:C:\tool\nodejs
**2、**ERROR Deployer not found : github
解决办法:
3使用淘宝镜像加快安装速度
安装cnpm,使用命令:
1 | npm install cnpm -g --registry=https://registry.npm.taobao.org |
npm install -g hexo
#等待安装完成,这个过程可能会快也可能很慢,耐心等待mkdir blog && cd blog
#上面这个代码是创建一个博客存放的目录hexo init
#初始化cnpm install
#安装依赖包hexo g
#生成静态页面hexo s
#启动服务器,打开http://localhost:4000 就是本地博客本地博客安装完成,下面介绍发布到github上
yourgithubname.github.io
Setting
_config.yml
配置文件1 | deploy: |
最后执行
hexo g
#重新生成静态博客hexo d
#将本地静态博客部署到github现在你在浏览器打开:http://yourname.github.io就可以访问你的博客了
到此为止就搭建完了一个博客
开始写第一篇文章:
执行:hexo new “你的文章标题”
然后你在blog/source/_posts
文件夹下面有文件,用markdownpad打开编辑
执行:
hexo g
#重新生成hexo s
#本地查看效果hexo d
#上传到githubhexo d -g
这里我只是贴一段代码测试一下
1 | package com.hisen.interview; |
MarkdownPad 2在windows 10上会遇到这个错误
官方发布了这个问题的解决办法
详见:点击前往 页面中搜索:This view has crashed
windows 10系统 需要下载 一个 awesomium_v1.6.6_sdk_win
这是一个 HTML UI ENGINE
下载地址:http://markdownpad.com/download/awesomium_v1.6.6_sdk_win.exe