利用可能な最新バージョン (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') }}">
サイトを生成すると、コマンド ライン出力に適切な css が表示されbody{background-color:blue};
ますが、ファイルdeploy/media/css/style.css
はファイルの単なるコピーless
です。これに関するドキュメントは素晴らしいものではありません - 誰かがそれを動作させましたか? ありがとう。