github hexojs/hexo 4.1.1

latest releases: v7.3.0, v7.2.0, v7.1.1...
4 years ago

Feature

  • Add trailing_html: to pretty_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 if language: 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.
  • 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]

Don't miss a new hexo release

NewReleases is sending notifications on new releases.