jekyll-bootstrap icon indicating copy to clipboard operation
jekyll-bootstrap copied to clipboard

Can't include theme in posts

Open xiadingZ opened this issue 9 years ago • 3 comments

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.

xiadingZ avatar Mar 08 '16 05:03 xiadingZ

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.

alexsanjoseph avatar Mar 12 '16 05:03 alexsanjoseph

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)

Q-Mart avatar Mar 13 '16 15:03 Q-Mart

Yes, I meet that problem too!But it finally works after correcting the codes Q-Mart mentioned!

Matthew1994 avatar Mar 16 '16 08:03 Matthew1994