微信小程序开发入门 七月
5
require相对路径
向大佬低头
我不得不对此感到疑惑?
hexo命令不显示hexo.js中的console.log!!!与node debug ./node_modules/hexo/bin/hexo g
略有不同
hexo.js完成的任务主要有new Hexo(),init(),exit().
Cannot read property 'replace' of null
hexo\lib\hexo\load_config.js:34:30.原来是这玩意儿在解释YHML,加载配置。c继续
module.exports与exports
exports.camelCaseKeys = require(‘./camel_case_keys’);
module.exports = entry;
fs.readFileSync(path.join(__dirname, './assets/some-file.txt'));
等同于fs.readFileSync(require.resolve('./assets/some-file.txt'));
git clone -b refactor https://github.com/maroslaw/rainyday.js.git stop
在官网new repo,然后github在你没有readme的时候会有提示页面,照做就行。
git init一下,在github网上 new repo,然后
另:git pull –rebase origin master(如果创建库时生成了README.md,即README.md不在本地文件目录)
ssh-keygen -t rsa -f test -C "test key"
创建公钥和密钥配置ssh的config文件
|
|
git remote set-url origin
查看gitconfig git config –list
查看远程仓库信息 git remote show origin
查看远程仓库 git remote -v
warning: LF will be replaced by CRLF in XXXXX.
The file will have its original line endings in your working directory.
关于autocrlf。windows系统下,如果git add提交到stage的文件时unix格式,就有上面的提示。
意思是core.autocrlf默认为true,提交到index后会自动转为lf endings,方便项目跨平台使用。
commit阅读利器gitk
node debug ./node_modules/hexo/bin/hexo g
{ git: [Function: val] }
.hexo/extend
hexo/plugins
hexo-renderer-ejs ejs
Hexo.prototype._generate()
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true