Adding defaults for pages throws an error on jekyll serve #312
Replies: 20 comments
-
What does |
Beta Was this translation helpful? Give feedback.
-
Here's the output from the command:
|
Beta Was this translation helpful? Give feedback.
-
Hmm nothing is sticking out to me. It sure looks like it's your content though. I'd start by moving all of your posts and pages, build, see if that works. Then move a few back at a time to identify the problem child. It looks like the error happens right around when the
I'm far from a Jekyll expert so you might want to search some closed issues in the Jekyll repo or the Jekyll Talk forums. I know I've seen similar errors like this before, just can't place where. And stupid question but are your running Jekyll with |
Beta Was this translation helpful? Give feedback.
-
I installed bundler and ran
This time it looks like the issue is with |
Beta Was this translation helpful? Give feedback.
-
Not sure then. Looks like plugin related stuff. And since I didn't write On Monday, May 9, 2016, Tyler Hughes notifications@github.com wrote:
|
Beta Was this translation helpful? Give feedback.
-
I am experiencing the same problem as @RandomlyKnighted. Almost identical stack trace only minor versions differs. What puzzles me is that
|
Beta Was this translation helpful? Give feedback.
-
I'm 99.9% sure this is related to both of your Ruby environments, especially in your case @andreabedini, since you appear to only have added 1 test file. I know I've experienced the same thing at some point and it took getting the right mix of versions in the As suggested before I'd start searching Jekyll's issues and the Jekyll Talk forums because I know I've seen this exact same error talked about. Another suggestion would be to update the dependencies with And since it seems like it
gems:
# - jekyll-paginate
# - jekyll-sitemap
# - jekyll-gist
# - jekyll-feed
# - jemoji
|
Beta Was this translation helpful? Give feedback.
-
Possibly related issue #261 |
Beta Was this translation helpful? Give feedback.
-
Also @andreabedini I just ran the same ---
layout: single
---
Test And got the exact same error as you. You're missing So do this instead for a page: ---
title: "Your Post Title"
layout: single
---
Test |
Beta Was this translation helpful? Give feedback.
-
thanks @mmistakes, I just reached the same conclusion. Adding a title solved my problem. |
Beta Was this translation helpful? Give feedback.
-
I don't think I had a title on my home page so I'll try that out when I get home tonight and will let you know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Home page doesn't need it. It would just be for any pages you use the |
Beta Was this translation helpful? Give feedback.
-
Ok well I was able to get your gh-pages branch to run finally. Though I had to make a change or two. With the latest version of Ruby you have to add I've run the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I had the same problem here and solved it by the same way. (adding defaults:
# _pages
- scope:
path: ""
type: pages
values:
title: # something here to match the default behavior |
Beta Was this translation helpful? Give feedback.
-
@flohw I don't think that would work since you probably wouldn't want every page to have the same title. You could get more specific with |
Beta Was this translation helpful? Give feedback.
-
@mmistakes I'll be able to follow up on your CSS recommendations this afternoon. |
Beta Was this translation helpful? Give feedback.
-
@flohw Also for what it's worth, as a best practice you should be setting a If you look at what the Jekyll does with |
Beta Was this translation helpful? Give feedback.
-
@mmistakes Ok, I understand that point. I though that Jekyll creates also a title for pages. |
Beta Was this translation helpful? Give feedback.
-
I was facing this issue, and what recently helped me was changing the Gem file, specified in #2379 (comment) |
Beta Was this translation helpful? Give feedback.
-
I have the following defaults in my _config.yml file:
but when I add the lines below to my _config.yml file I get an error.
Here's the error I get when I add the defaults for the pages
Beta Was this translation helpful? Give feedback.
All reactions