Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't include theme in posts #301

Open
xiadingZ opened this issue Mar 8, 2016 · 3 comments
Open

Can't include theme in posts #301

xiadingZ opened this issue Mar 8, 2016 · 3 comments

Comments

@xiadingZ
Copy link

xiadingZ commented Mar 8, 2016

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.

@alexsanjoseph
Copy link

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.

@Q-Mart
Copy link

Q-Mart commented Mar 13, 2016

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)

@Matthew1994
Copy link

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

@xiadingZ xiadingZ changed the title Can'e include theme in posts Can't include theme in posts Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants