Code Monkey home page Code Monkey logo

Comments (8)

philipmjohnson avatar philipmjohnson commented on May 27, 2024

My basic-template repo includes a ruby plugin (MoreaGenerator.rb). I disabled the plugin (by renaming it to MoreaGenerator.txt) and found that the problem still exists under Jekyll 2.0.2 but not under 1.4.3. So there must be something simple that I'm doing wrong that causes my morea.html layout to not be included when index.md is compiled to index.html.

from jekyll-help.

philipmjohnson avatar philipmjohnson commented on May 27, 2024

I just created a more detailed description of my problem with Jekyll 2.0.2 here:

http://stackoverflow.com/questions/23553629/why-does-my-site-work-using-jekyll-1-4-3-but-not-jekyll-2-0-2

Please respond in StackExchange. Thanks!

from jekyll-help.

albertogg avatar albertogg commented on May 27, 2024

I have run your site in Jekyll 2.0.2 and I'm seeing this:

screen shot 2014-05-08 at 10 26 44 pm

It seems it's working, no?

from jekyll-help.

philipmjohnson avatar philipmjohnson commented on May 27, 2024

No, that image indicates it's broken (and that you're using the master branch, not the jekyll-2.0 branch). When correctly generated (as happens in 1.4.3) you should see a page styled using bootstrap similar to this:

basic-template-1 4 3

from jekyll-help.

nternetinspired avatar nternetinspired commented on May 27, 2024

Your template has no default layout, though it is referenced from your post layout:

https://github.com/morea-framework/basic-template/blob/jekyll-2.0/src/_layouts/post.html

from jekyll-help.

nternetinspired avatar nternetinspired commented on May 27, 2024

I can't see how this could have worked in 1.4.3 either. You need to have a default layout.

from jekyll-help.

philipmjohnson avatar philipmjohnson commented on May 27, 2024

Thanks, renaming the layout morea.html to default.html and updating
references did fix my problem.

Since index.md was a page, not a post, it was not obvious to me that the
reference to a layout called default in post.html would matter to
index.html generation (and, obviously, it did not matter under Jekyll
1.4.3).

Maybe update the docs at some point to specify that a layout called
default.html is required?

I appreciate your quick response!

Philip

On Thu, May 8, 2014 at 10:52 PM, Seth Warburton [email protected]:

I can't see how this could have worked in 1.4.3 either. You need to have a
default layout.

โ€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-42645618
.

from jekyll-help.

nternetinspired avatar nternetinspired commented on May 27, 2024

No worries, I'm glad I was able to resolve it for you.

AFAIK, nothing has changed in this behaviour though, there always has to be a default layout file whether it is called default or not. You were asking Jekyll to render content to a file that didn't exist, that will always cause a break.

The only thing that defines if the output of the index file is a page, post or anything else is the layout specified in the files front-matter.

from jekyll-help.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.