Nanoc 布局编译规则 [英] Nanoc layout compile Rules

查看:40
本文介绍了Nanoc 布局编译规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 nanoc 并且我希望我的 index.html 指向特定的布局,因此我创建了该布局并将其称为 nosidebar.html

I'm working with nanoc and I want my index.html to point to specific layout so I created that layout and it is called nosidebar.html

我的规则如下:

compile 'index.html' do 
  layout 'nosidebar'
end

这似乎不起作用.我做错了什么?

and this doesn't seem to work. What am I doing wrong?

推荐答案

我还没有完全按照你的要求去做,但可能是这样的:

I haven't done exactly what you are but maybe something like this:

compile '/' do 
  rep.layout 'nosidebar'
end

这篇关于Nanoc 布局编译规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆