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
titleby filename. - Auto generate
abbrlinkby filename, withbase32andcrc32arithmetic. - Auto generate
dateby filename, likeJekyll. - Auto generate
categoriesby filepath. - Auto generate
tagsby global pre-configuredtagsandkeywordsin 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