Hexo DIY
Adding customized features
Pin/Unpin a post
Pin or unpin a post in any order by modifying the source code:
- Open the “node_modules\hexo-generator-index\lib”, then modify the sorting function in “generator.js”;
- Pin or unpin a post by setting the “top” variable.
1 | module.exports = function(locals) { |
Edit the layout
Please Edit the style files (base.styl and responsive.styl) under the path “node_modules\hexo-theme-icarus\include\style”.
- Check the issue
If you want to make the home page as 3-column and post pages as 2-column layout, please configure a new ‘_config.post.yml’ file and modify the widescreen layout accordingly. - Adjust 2-column / 3-column layout and width
Rendering mathematical formulas
Some symbols in the formula are being escaped by Hexo’s Markdown processor, so the formula received by MathJax is incorrect. To solve this problem, you can use the code block to wrap the problematic formula.