This is an feature enhancement plugin for Hexo
based on hexo-enhancer.
I fork the hexo-enhancer on 2022/07/13 and then the author commits on Oct 13, 2021 last time.
hexo-enhancer: https://github.com/sisyphsu/hexo-enhancer#readme hexo-enhancer中文文档:https://sulin.me/2019/Z726F8.html
Hexo-enhancer support multiple helpful features as blow:
- Auto generate
title
by filename. - Auto generate
abbrlink
by filename, withbase32
andcrc32
arithmetic. - Auto generate
date
by filename, likeJekyll
. - Auto generate
categories
by filepath. - Auto generate
tags
by global pre-configuredtags
andkeywords
in the_config.yml
.
I change the title parsing pattern from
/^.?(\d{4})[-_]?(\d{2})[-_]?(\d{2}).?[-_.@# ]*(.*)$/
to
/^(.*)[-_.@# ]*.?(\d{4})[-_]?(\d{2})[-_]?(\d{2}).?$/
which means the file name should be named like "文章标题_20220713" etc.
MIT