0
我一直试图让海德网站使用最新版本(0.8.4)。我使用内置命令来创建一个网站hyde -s /path/to/dir create
,并且一切正常。然后我跟我一些例子中,试图通过编辑site.yaml
文件得到LessCSS支持:Hyde LessCSS插件不会将较少的文件转换为css
plugins:
- hyde.ext.plugins.meta.MetaPlugin
- hyde.ext.plugins.auto_extend.AutoExtendPlugin
- hyde.ext.plugins.sorter.SorterPlugin
- hyde.ext.plugins.tagger.TaggerPlugin
- hyde.ext.plugins.syntext.SyntextPlugin
- hyde.ext.plugins.textlinks.TextlinksPlugin
- hyde.ext.plugins.less.LessCSSPlugin
# ...
less:
app: /path/to/lessc
我添加了一个非常基本的少的文件来检查它的工作原理:
/* content/media/css/style.less */
@color: blue;
body { background-color: @color; }
并已将其列入我的应用程序:
<link rel="stylesheet" href="{{ media_url('css/style.css') }}">
当我生成网站,我看到在命令行输出body{background-color:blue};
在适当的CSS,但文件deploy/media/css/style.css
只是less
文件的副本。关于这方面的文档并不是很好 - 有没有人让它起作用?谢谢。