henrik / jekyll Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jekyll/jekyll
Jekyll is a blog-aware, static site generator in Ruby
This project forked from jekyll/jekyll
Jekyll is a blog-aware, static site generator in Ruby
Is there currently a way to set the ':format' option for HAML to change the doctype?
Like this:
http://haml-lang.com/docs/yardoc/HAML_REFERENCE.md.html#options
This would be good so the doctype could be changed to HTML4 or HTML5
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 method
header' 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.
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.
Alphabetically?
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.
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.
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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.