自定义布局页面的写法
why
搜索引擎上的教程大部分语焉不详,
我想在学习的过程记录,并且能够自己独立写自定义布局页面
step
- step1:
cmdhexo new page "创建的页面"
- step2:
_config.yml
配置你的nav
nav :
youKey: yourpageName
#... - step3
folderlayout
create fileName about your layout name
and I create about.ejsit will be a page code with layout.ejs.<%# your code wirite here %>
- step4
to you page Name
andyaml front matter
add this yamllayout: yourlayoutName
---------------- The End and I hope sunshines on the outside. ----------------