hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.3k stars 4.83k forks source link

Proposal: introduces PostHTML into Hexo #4802

Open SukkaW opened 2 years ago

SukkaW commented 2 years ago

Since Hexo is a framework outputting HTML files. So we should introduce an HTML transformer into Hexo's core. PostHTML is a tool to transform HTML/XML. With PostHTML we can:

curbengh commented 2 years ago

Reminds me of soupault, an SSG that can parse/manipulate HTML.

Integrate htmlnano directly into Hexo.

Do you mean posthtml itself instead? htmlnano is just a minifier like hexo-html-minifier, not everyone uses a minifier.

SukkaW commented 2 years ago

Do you mean posthtml itself instead? htmlnano is just a minifier like hexo-html-minifier, not everyone uses a minifier.

Yeah, not everyone wants a minifier. But I want to make the minifier feature kinda a switch (set to true and boom! enabled) instead of a plugin.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.