玩命加载中 . . .

主页 归档 分类 标签

hexo自定义页面布局

自定义布局页面的写法

why

搜索引擎上的教程大部分语焉不详,
我想在学习的过程记录,并且能够自己独立写自定义布局页面

step

  • step1:
    cmd
    hexo new page "创建的页面"
  • step2:
    _config.yml配置你的 nav
    nav :
    youKey: yourpageName
    #...
  • step3
    folder layout
    create fileName about your layout name
    and I create about.ejs
    <%# your code wirite here %>
    it will be a page code with layout.ejs.
  • step4
    to you page Name
    and yaml front matter
    add this yaml
    layout: yourlayoutName
---------------- The End and I hope sunshines on the outside. ----------------
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2022 Ma
  • 访问人数: | 浏览次数:

      请我喝杯咖啡吧~

      支付宝
      微信