search: path: search.xml field: post format: html limit: 10000
修改themes\maupassant下的_config.yml,打开self_search
google_search: false ## Use Google search, true/false. baidu_search: false ## Use Baidu search, true/false. swiftype: ## Your swiftype_key, e.g. m7b11ZrsT8Me7gzApciT tinysou: ## Your tinysou_key, e.g. 4ac092ad8d749fdc6293 self_search: true ## Use a jQuery-based local search engine, true/false.
访问统计
修改themes\maupassant下的_config.yml,打开不蒜子
busuanzi: true ## If you want to use Busuanzi page views please set the value to true.
flowchart: # raphael: # optional, the source url of raphael.js # flowchart: # optional, the source url of flowchart.js options: # options used for `drawSVG`
sequence: # webfont: # optional, the source url of webfontloader.js # snap: # optional, the source url of snap.svg.js # underscore: # optional, the source url of underscore.js # sequence: # optional, the source url of sequence-diagram.js # css: # optional, the url for css, such as hand drawn theme options: theme: css_class:
Hexo日常操作
写文章
[layout]默认为post,指的是文章的布局类型,在_config.yml中可以配置
如果[layout]=post,那么新文章将生成到source/_posts目录下
$ hexo new [layout] <title>
文章开头”—“之间的部分称为Front-matter,主要包括以下信息
参数
描述
layout
文章布局
title
文章标题
date
文章发布时间
updated
文章更新时间
tags
标签
categories
分类
发表文章
$ hexo new post [title] $ hexo clean $ hexo generate $ hexo server $ hexo deploy
$ hexo g INFO Start processing FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Template render error: expected variable end