Open xiadingZ opened 8 years ago
I have the same issue. I have followed the instruction in the help file, but none of the posts have any theme. I get the following errors in the console where jekyll is serving
[2016-03-12 00:31:56] ERROR `/assets/themes/bootstrap/css/bootstrap.min.css' not found.
[2016-03-12 00:31:56] ERROR `/assets/themes/bootstrap/css/bs-sticky-footer.css' not found.
[2016-03-12 00:31:56] ERROR `/assets/themes/bootstrap/css/bootstrap-theme.min.css' not found.
[2016-03-12 00:31:56] ERROR `/assets/themes/css/style.css' not found.
[2016-03-12 00:31:56] ERROR `/assets/themes/bootstrap/js/bootstrap.min.js' not found.
[2016-03-12 00:31:58] ERROR `/assets/themes/bootstrap/css/bootstrap.min.css' not found.
I was having the same problems and after reading this, I managed to resolve it.
Basically _includes/JB/setup
, replace line 20 with {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %}
(so just change page.theme.name
to layout.theme.name
)
Yes, I meet that problem too!But it finally works after correcting the codes Q-Mart mentioned!
I create a post using
rake post title="test"
, this is my test code:`--- layout: page title: "test" description: "this is description" category: prml
tags: [book, prml]
{% include JB/setup %}
test one
test two
test three
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$ `
This file is in _posts/, but when I open it in browser, it doesn't have theme as other webpages in root directory, it only has text. then I try to create a new post and copy the content of my ./about.md to it . However, the about.md in my root directory has theme, but that in _posts/ doesn't.
How to make all my posts have same theme as webpage in my root directory.