Hexo v4.1.1 Release Notes
Release Date: 2019-12-12 // over 4 years ago-
๐ 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.ymlpretty_urls: trailing_html: false
- Example:
https://yoursite.com/page/about.html
->https://yoursite.com/page/about
๐ Fixes
- 0๏ธโฃ 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]