文章目录
        
            
        
    
    
    
    
                  hexo 的 themes文件夹下存在git等文件导致URI malformed
遇到过生成页面后出现一堆代码,或者是 CSS 错误,或者类似 URIError: URI malformed 这样的错误,查了半天,发现是
vim 修改了 ejs 文件后,自动生成了带 ~ 后缀的备份文件,这将导致 Hexo 生成的时候一起包含进去出错。删掉所有的备份文件即可。
| 1 | URIError: URI malformed | 
需要在hexo的配置文件添加
| 1 | skip_render: | 
如果还存在问题可以考虑 对于markdown文件中备注代码块格式加了ejs的备注
tags 多标签 multi category and multi tag -2020年3月31日
| 1 | //文章标签,可空,多标签请用格式[tag1,tag2,tag3],如下,注意!!"tags:"后面有个空格tags: [tag1, tag2, tag3, ...]// 下面这种方式似乎仅限于hexo 3.0tags:- npm - vue | 
注意tags: 后面不要有空格,-与标签名之间应该有空格
How about supporting multi category and multi tag
设置date的格式
| 变量 | 描述 | 
|---|---|
| :year | 文章的发表年份(4 位数) | 
| :month | 文章的发表月份(2 位数) | 
| :i_month | 文章的发表月份(去掉开头的零) | 
| :day | 文章的发表日期 (2 位数) | 
| :i_day | 文章的发表日期(去掉开头的零) | 
| :title | 文件名称 | 
| :post_title | 文章标题 | 
| :id | 文章 ID | 
| :category | 分类。如果文章没有分类,则是 default_category配置信息 | 
github地址 可以参考一下代码风格
为网页设置统一风格的URL
| 1 | npm install hexo-abbrlink --save 安装 该插件 后将_config.yml permalink: :abbrlink.html # 生成唯一链接 永久链接(Permalinks)abbrlink: alg: crc32 # 算法:crc16(default) and crc32 rep: dec # 进制:dec(default) and hex permalink_defaults: :year/:month/:day/:title/ 默认是是这样拼接URL | 
 
                                