-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Default ASSET_PATH fails for latest jekyll version #290
Comments
Had the same problem. The solution for the Bootstrap Theme included the above hack and:
Not very pretty, but it works for my site. |
@tops357 if you replace your
then if will also fix the What works for me is:
Unfortunate it is a double-barrel step but it works. |
A quick cheat for this (if you just need to get things working and you want to use a theme, for instance I was using the I just opened the That seemed to do the trick (for now until I can figure out what the heck is causing the theme.name value to get lost). I know this is a total hack, but I was looking for a "single location" to make the changes I needed and that seemed to do the trick (so I could leave all the other structure alone). Hope it helps someone. |
(plusjade#290) solution: if page.theme.name unavailable (empty) use layout.theme.name
I have the same problem. the right link is like is: but the wrong link is:i try the layout.theme.name but not work for me..... UPD: thanks a lot. |
this is still not working... i had to manually set |
Have the same problem when I run Hack as above to manually change the |
i have same question,let me try #293,it work,good job!!! |
@qh 's patch is working. See qh@a1d17ef or #293 |
Closing, as #293 was merged in to develop branch. |
as a hack to overcome troubles with rendering in GitHub Pages. See plusjade/jekyll-bootstrap#290 for more information.
(plusjade/jekyll-bootstrap#290) solution: if page.theme.name unavailable (empty) use layout.theme.name
Post pages were broken with Jekyll 3.0, fix this by applying this patch: plusjade/jekyll-bootstrap@c3d3cbe issues: plusjade/jekyll-bootstrap#113 plusjade/jekyll-bootstrap#290
Thanks for documenting a fix here. 👍 Setting ASSET_PATH in my config did the trick. |
Thanks for this issue! |
CSSが読み込まれない理由としては、 {{ page.theme.name }} が空になってしまうようで、linkタグが <link href="/assets/themes//bootstrap/css/bootstrap.min.css" rel="stylesheet"> このように生成されてしまいます。 以下を参考にして、_include/JB/setup の {{ page.theme.name }} を {{ layout.theme.name }} に変えたらCSSを読み込みました。 [Default ASSET_PATH fails for latest jekyll version #290](plusjade/jekyll-bootstrap#290) [Problems with {{ ASSET_PATH }} in Jekyll 3.1.1 #295](plusjade/jekyll-bootstrap#295) Error Message: [2016-06-04 01:47:15] ERROR `/assets/themes/bootstrap/css/bootstrap.min.css' not found. [2016-06-04 01:47:15] ERROR `/assets/themes/css/style.css' not found.
serving default jekyll-bootstrap blog with latest (3.0.0) jekyll will not load assets for blogs i.e.
core-samples/lessons/2011/12/29/jekyll-introduction
Looks like with new verison Jekyll/Liquid front matter do not inherit theme variable from layouts, thats why
page.theme.name
is empty.as workaround its possible to define theme for every post, or define ASSET_PATH directly in config.
btw - why not to define theme variable in config file to use in
JB/setup
?UPD: as for jekyll 3.0 layout variables now accessible with
layout.variable
. So updatingJB/setup
's capture of ASSET_PATH would resolve issue but only for posts.I'm not sure why, but it still wont work for any
layout: page
pages.Here is my workaroud
The text was updated successfully, but these errors were encountered: