Pug模板不能在HEXO阻止其他文件的内容?

时间:2018-12-18 07:42:28

标签: pug hexo

这是文件layout.pug

html(lang=config.language)
  head
    meta(charset='UTF-8')
    meta(name='viewport', content='width=device-width, initial-scale=1.0')
    meta(http-equiv='X-UA-Compatible', content='ie=edge')
    link(rel='stylesheet', href='stylesheets/style.css')
    link(rel='icon', href= theme.favicon)
    title= config.title
  body  
    include _partial/header.pug
    main#main.container
      block content 
    include _partial/footer.pug

这是文件index.pug

extends ./layout.pug

block content 
   h1 Hello

文件布局不阻止内容?请帮助我

0 个答案:

没有答案