How does Hexo customize the page template?

it is known that new pages can be created through new page, but all page layout styles are unified, so how to create a custom page layout that is different from other pages?


after writing the html, ignore rendering the file in the configuration file. The effect is that if you jump to the page, it will be displayed as it is written by html, without adding the style of the theme.

skip_render item in the site configuration file _ config.yml ,

 skip_render: diyPage/**

in this case, all files under the diyPage folder are ignored

 skip_render: page/diyfile.html

in that case, only diyfile.html should be ignored

.

reference link: method of Hexo customization page

Menu