Giter Club home page Giter Club logo

jekyll's Issues

Haml and includes

Tried to add
- include header.haml

And get same error as in previous issues:
$ jekyll
Configuration from ./_config.yml
Enabled Haml
Building site: . -> ./_site
/usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/core_ext.rb:27:in method_missing': undefined methodheader' for #<ClosedStruct page=#<ClosedStruct ...>...

Include (Tag)
If you have small page fragments that you wish to include in multiple places on your site, you can use the include tag.
{% include sig.textile %}
Jekyll expects all include files to be placed in an _includes directory at the root of your source dir. So this will embed the contents of /path/to/proto/site/_includes/sig.textile into the calling file.

Host gem on gemcutter (rubygems.org)

I'm not able to find your gem on gemcutter (the new blessed gem host) and since Github will stop hosting gems pretty soon, I'd appreciate it if you could start using gemcutter to host your fork of Jekyll. It's a dependency for my Jekyll framework, Octopress http://github.com/imathis/octopress

It would be great if Octopress users could install your fork without having to do it manually. Thanks for your work on this. It's truly outstanding.

Using site.[CONFIGURATION_DATA]

Tried to use variables from _config.yml and get error:

Configuration from ./_config.yml
Enabled Haml
Building site: . -> ./_site
/usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/core_ext.rb:27:in `method_missing': undefined method `myName' for #<ClosedStruct topics={}, posts=[<Post: /blog/welcome>], categories={"blog"=>[<Post: /blog/welcome>]}, time=Mon Jul 27 11:28:49 +0300 2009, tags={"self"=>[<Post: /blog/welcome>]}, related_posts=[]> (NoMethodError)
    from (haml):19:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `instance_eval'
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:72:in `render_haml_in_context'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:105:in `do_layout'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/post.rb:226:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:172:in `read_posts'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:in `read_posts'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:210:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:216:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:213:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:213:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:212:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:212:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/../lib/jekyll/site.rb:126:in `process'
    from /usr/local/lib/ruby/gems/1.8/gems/jekyll-0.5.2/bin/jekyll:135
    from /usr/local/bin/jekyll:19:in `load'
    from /usr/local/bin/jekyll:19

I used it as written here:

site.[CONFIGURATION_DATA]    
As of 0.5.2, all data inside of your _config.yml is now available through the site variable. So for example, if you have url: http://mysite.com in your configuration file, then in your posts and pages it can be used like so: {{ site.url }}. Jekyll does not parse a changed _config.yml in auto mode, you have to restart jekyll.

Haml and categories listing error

Found that when i add
- for post in site.categories.work

to my haml template i get error

(haml):10:in `render': undefined method `work' for #<Hash:0x1a77ff0> (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `instance_eval'
    from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/engine.rb:167:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:72:in `render_haml_in_context'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:88:in `do_layout'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/page.rb:45:in `render'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:223:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:213:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:213:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:212:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:212:in `transform_pages'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:126:in `process'
    from /usr/local/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/jekyll:135
    from /usr/local/bin/jekyll:19:in `load'
    from /usr/local/bin/jekyll:19

But if i use liquid for this:

{% for post in site.categories.work %}
  <li>{{ post.title }}</li>
{% endfor %}

It works fine. Need advice, how to correct this issue.

Pagination completely unsupported

Might want to change the docs to reflect the lack of support for pagination! The workflow for rendering pages totally bypasses all pagination features. I'm working on getting it back in in my fork, and if you have any tips I'd appreciate it!

gem install fails with RedCloth missing

Hi,

Completely new to Jekyll.

When I use the gem install from the instructions:

sudo gem install mojombo-jekyll -s http://gems.github.com

I get told

mojombo-jekyll requires RedCloth (>= 4.2.1, runtime)

I've manually installed RedCloth and have version 4.2.8.

But the error persists.

BTW I've also updated to RubyGems latest (1.8.8) but no difference.

Thoughts?

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.