我一直在尝试使用可用的最新版本(0.8.4)创建一个hyde站点。我使用内置命令创建了一个站点hyde -s /path/to/dir create,一切工作正常。然后,我遵循了一些我找到的示例,尝试通过编辑site.yaml文件来获得LessCSS支持:
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我添加了一个非常基本的less文件来检查它是否工作:
/* 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文件的副本。关于这一点的文档不是很好--有人让它工作了吗?谢谢。
发布于 2012-01-09 00:01:55
Hyde有一个广泛的测试套件,css测试通过的越少。所以插件起作用的越少。我能想到的唯一问题是less二进制文件。Hyde的less插件是为与less:https://github.com/cloudhead/less.js/的JS版本一起使用而编写的。
https://stackoverflow.com/questions/8516169
复制相似问题