6.3.0

hexojs/hexo6.3.0Sep 8, 2022by yoshinorin

AI Summary

Adds new features for tags, helpers, and improvements to the Table of Contents (TOC) generation.

Key Highlights

  • Added `show_count` option to the tagcloud helper.
  • Added `is_home_first_page()` helper.
  • Improved TOC class name flexibility.
  • Added `language_attr` option for code blocks.

New Features

  • Show count option for tagcloud
  • is_home_first_page() helper
  • language_attr option for code blocks

Full Release Notes

## New Features

* feat(tag/post_link): throw on post_link error by @xbc5 in https://github.com/hexojs/hexo/pull/4938
* feat(tag/include_code): robust for url compuation of `view raw` by @stevenjoezhang in https://github.com/hexojs/hexo/pull/4996
* feat(paginator): allow custom class name by @renbaoshuo in https://github.com/hexojs/hexo/pull/5001
* feat(helper/toc): more flexible class name by @renbaoshuo in https://github.com/hexojs/hexo/pull/5010
* feat(helper/tagcloud): show_count option (#5047) by @renbaoshuo in https://github.com/hexojs/hexo/pull/5048
* feat(tag/code): add `language_attr` option (hexojs/hexo-util#278) by @renbaoshuo in https://github.com/hexojs/hexo/pull/5017
* feat(helper/is): add `is_home_first_page()` helper by @renbaoshuo in https://github.com/hexojs/hexo/pull/5006

## Improvements

* let post_link use original post title as title attribute by @ppwwyyxx in https://github.com/hexojs/hexo/pull/4973

## Fixes

* fix(hexo/index): `db.json` file path in debug logging on Windows by @stevenjoezhang in https://github.com/hexojs/hexo/pull/4994
* fix(tag): show source file in unformatted error message by @curbengh in https://github.com/hexojs/hexo/pull/5031
* Don't use data-uri for og:image by @KentarouTakeda in https://github.com/hexojs/hexo/pull/5053

## Refactors

* refactor(helper/open_graph): use whatwg url api by @renbaoshuo in https://github.com/hexojs/hexo/pull/5007
* chore(mail_to): use native URLSearchParams by @renbaoshuo in https://github.com/hexojs/hexo/pull/5002

## Test

* test: replace nyc with c8 by @stevenjoezhang in https://github.com/hexojs/hexo/pull/5040
* chore(test/extend/tag): async function (#3328) by @renbaoshuo in https://github.com/hexojs/hexo/pull/5003

## CI/CD

* chore: Set permissions for GitHub actions by @neilnaveen in https://github.com/hexojs/hexo/pull/4947
* chore: delete `release-drafter` by @yoshinorin in https://github.com/hexojs/hexo/pull/5044
* chore: improved benchmark result in github actions by @renbaoshuo in https://github.com/hexojs/hexo/pull/5013

## Dependencies

* chore(deps): bump hexo-util and warehouse by @yoshinorin in https://github.com/hexojs/hexo/pull/5028
* chore(deps): bump hexo-log from 3.0.0 to 3.2.0 by @yoshinorin in https://github.com/hexojs/hexo/pull/5054

## Misc

* Update license year by @renbaoshuo in https://github.com/hexojs/hexo/pull/5041
* chore: update issue template by @yoshinorin in https://github.com/hexojs/hexo/pull/5030
* chore: update .gitignore by @yoshinorin in https://github.com/hexojs/hexo/pull/4967

## New Contributors

* @xbc5 made their first contribution in https://github.com/hexojs/hexo/pull/4938
* @neilnaveen made their first contribution in https://github.com/hexojs/hexo/pull/4947
* @ppwwyyxx made their first contribution in https://github.com/hexojs/hexo/pull/4973

**Full Changelog**: https://github.com/hexojs/hexo/compare/6.2.0...6.3.0