4.1.1
版本发布时间: 2019-12-12 15:24:50
hexojs/hexo最新发布版本:v7.3.0(2024-07-01 22:41:17)
Feature
- Add
trailing_html:
topretty_urls:
option to remove ".html" from url [#3917]- Use the following config to remove the trailing ".html" from permalink variables
_config.yml pretty_urls: trailing_html: false
- Example:
https://yoursite.com/page/about.html
->https://yoursite.com/page/about
Fixes
- Set default locales (in "language_TERRITORY" format) for
og:locale
Open Graph tag [#3921]- Previously
og:locale
was inserted only iflanguage:
is configured in "language-TERRITORY" format - With this fix, if the language is "en",
og:locale
will default to "en_US". Refer to the pull request for the full list.
- Previously
-
meta_generator()
helper should output the correct Hexo version [#3925] -
permalink_defaults:
option should be parsed, not replaced [#3926] - "node_modules/" and ".git/" folders in themes/ are now always ignored [#3918]
Refactor
- Further reduces lodash usage [#3880]