【发布时间】:2015-03-09 09:54:10
【问题描述】:
我在终端中启动以下命令后,Jekyll 似乎没有编译我的 css
jekyll serve --watch
这让我的页面没有应用任何样式,只是简单的旧标记
这是我的 css 图像位于 _site 目录中(注意没有编译的 css)
一旦我保存了 main.scss 文件,编译就会发生,我的 css 也被编译,在我的浏览器中快速刷新会应用这些样式。一旦我在我的项目中启动 Jekyll 服务器,这不应该立即发生吗?
版本
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
jekyll 2.5.2
配置文件
# Site settings
title: example
email: your-email@domain.com
description: > # this means to ignore newlines until "baseurl:"
url: "http://yourdomain.com" # the base hostname & protocol for your site
# Build settings
markdown: kramdown
sass:
sass_dir: assets/css
style: :nested
【问题讨论】:
-
你能出示你的
_config.yml文件吗? -
我正在寻找一个
baseurl变量。我想这就是问题所在。可以给_includes/head.html代码吗? -
哟山姆!您的存储库非常未完成。没有 _includes,没有 _posts... 你最好从一个新的 jekyll 开始,然后把它放在
gh-pages分支上。 -
我已将它们添加回来,但似乎仍然存在同样的问题@DavidJacquel
-
抱歉,您的存储库 url 是什么?
标签: ruby compilation sass jekyll