Skip to content

Releases: hexojs/hexo

6.1.0

11 Mar 12:07
1ff6ba0
Compare
Choose a tag to compare

New Features

Fixes

Tests

Dependencies

Misc

New Contributors

Full Changelog: 6.0.0...6.1.0

5.4.1

22 Jan 11:33
0b5cc8a
Compare
Choose a tag to compare

Fixes

Full Changelog: 5.4.0...5.4.1

v6.0.0

22 Dec 13:30
c749815
Compare
Choose a tag to compare

Breaking Changes

Security

Please see more detail: Announcement: About CVE-2021-25987

New features

Performance

Fixes

Refactor

Docs

Dependencies

New Contributors

Full Changelog: 5.4.0...6.0.0

v5.4.0

21 Feb 08:06
b65a562
Compare
Choose a tag to compare

New features

Breaking change

  • fix(excerpt): use span instead of anchor element for better SEO performance @stevenjoezhang [#4627]

Fixes

Misc

Dependencies

v5.3.0

17 Dec 14:05
2f6a822
Compare
Choose a tag to compare

New features

  • expose escape_html helper method for string manipulation to templates @awwong1 [#4581]
  • list_tags: span element & custom class for label @noraj [#4578]

Fixes

Refactor

Docs

  • docs(badge): replace david-dm with more reliable shields.io @curbengh [#4538]

5.2.0

17 Sep 09:07
223a046
Compare
Choose a tag to compare

Changes

  • perf(external_link): faster regexp @SukkaW [#4536]
    • prioritise http(s):// over //
  • feat: support 'disableNunjucks' in front-matter @curbengh [#4518]
    • Enable this option to disable tag plugin
    • Setting this option in front-matter will override the same option set by the renderer (e.g. hexo-renderer-marked)
    ---
    title: foo
    date: 2020-01-02 03:04:05
    disableNunjucks: true|false
    ---
  • fix: avoid escaping front-matter if unnecessary @curbengh [#4522]
    • using variable (e.g. {{ title }}) with special characters no longer result in double-quote wrap
  • fix: validate value of config.url @curbengh [#4520]
    • config.url should starts with "http://" or "https://"
  • fix(router): convert string to buffer in route stream @ppoffice [#4517]
    • fix crash in hexo generate --bail
  • fix(disableNunjucks): query both async and sync versions of renderer @curbengh [#4498]
    • disableNunjucks option should now works reliably with synchronous renderer
  • feat(load_plugin): ignore pkg name endswith theme name @SukkaW [#4497]
    • An initial effort to support scoped package

Housekeeping

  • chore/ci: move benchmark & profiling to Actions @SukkaW [#4525] [#4514] [#4335]
    • Travis is now completely replaced by Actions (in this repo)
  • chore: use example.com for example domain @yoshinorin [#4512]

5.1.1

23 Aug 08:58
6635f2c
Compare
Choose a tag to compare

Changes

  • fix(filter/highlight): avoid escaping curly bracket when highlight & prismjs disabled @curbengh [#4489]
    • When both highlight.js and prismjs are disabled:
    # _config.yml
    highlight:
      enable: false
    
    prismjs
      enable: false
    • there was an issue that curly brackets { } are escaped { } mistakenly in the backtick_code_block.js filter. The fix is to avoid running that filter when code highlight is disabled.
    • Some users disable Hexo's default code highlight as they prefer to their own method.

5.1.0

22 Aug 03:24
ebc9008
Compare
Choose a tag to compare

Features

  • feat(highlight): parse 'caption' option to prismHighlight @curbengh [#4476]

    • caption is now available in prismjs:
    # _config.yml
    highlight:
      enable: false
    prismjs:
      enable: true
    • It can be used in triple backtick codeblock:
    ``` js caption
    console.log('foo')
    ```
    • above codeblock will be rendered as:
      (class attributes are omitted for brevity)
    <pre><div class="caption"><span>caption</span></div><code>console...</code></pre>
    • you can style the caption by:
    pre div.caption {
      font-size: 0.9em;
      color: #888;
    }
    
    pre div.caption a {
      float: right;
    }
  • fix: refactor post escape @SukkaW [#4472]

    • fixed issue with prismjs that, in some cases, did not remove hexo's processing tag properly
  • Remove plugins option in config @stevenjoezhang [#4475]

    # _config.yml
    plugins:
    • plugins option has been deprecated long ago and it's now completely dropped
    • plugins should be saved in scripts/ folder or installed via npm package.json.

Performance

  • perf(backtick_code): avoid duplicated escaping @SukkaW [#4478]

5.0.2

10 Aug 07:30
b7d15b9
Compare
Choose a tag to compare

Changes

  • Revert "perf: avoid running plugins in 'clean' command" [#4386] @curbengh [#4470]
    • This fixes error in hexo clean.

5.0.1

10 Aug 04:20
acb2154
Compare
Choose a tag to compare

Changes