jekyll

An easy way to support tags in a jekyll blog

I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really to tag my posts. I can tag a post by using the YAML front matter, but how do I generate pages for each tag that can will list all posts for a tag? ...

Is there a way to easily parse the year from the [site.time] property in Jekyll?

Is there a way to just pull the year (or any other element... month, day, etc) from the site.time property that is available to your template file in Jekyll? Right now it returns, for example: Sat Dec 19 14:07:03 -0700 2009 Any help is appreciated. Thanks! ...

Having difficulties with Jekyll / Liquid

I'm tring to do a loop for Nav links below my posts. This is going into the _layout of posts.html I can't get the link to not show if the post is the last or the first. Any help would be awesome. {% for post in site.posts %} {% if post.previous != forloop.last %} Last {% elsif post.next != forloop.first %} ...

Adding .html onto the end of a URL

I'm currently using Wordpress as a blogging platform but I want to change to use Jekyll to generate the static pages. On Wordpress my URLs use the following format: /year/month/day/title but I want to redirect that to /year/month/day/title.html and I can't figure out how to do that using mod_rewrite. Anyone got any ideas? ...

Modulus (or lack thereof) in Ruby's Liquid templating engine

I'm working on a Jekyll site and am trying to output three column divs nested in a row div. Liquid makes this pretty easy with their cycle filter: {% for p in site.categories.post %} {% cycle 'add rows': '<div class="row">', nil, nil %} <div class="column"> <a href="{{ p.url }}">{{ p.title }}</a> </div> ...

Use a subdirectory as root with htaccess in Apache 1.3

I'm trying to deploy a site generated with Jekyll and would like to keep the site in its own subfolder on my server to keep everything more organized. Essentially, I'd like to use the contents of /jekyll as the root unless a file similarly named exists in the actual web root. So something like /jekyll/sample-page/ would show as http://w...

How to deploy jekyll on slicehost

I have jekyll blog up and running locally. I am not sure how to push the content to slicehost. They have an instruction page but I am not able to follow the instruction. I have all my content on github. Just need to know how to make post-update hook work? ...

Is there anyway to make Jekyll support linked list type post?

I've tried to write a post using a link list layout that I've created but couldn't get jekyll to generate properly. The problem should be in the index.html but I can't make the index page to generate both layout together. {% for post in paginator.posts %} {% include post.html %} {% endfor %} ...

Jekyll documentation to PDF with TOC

I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that? The HTML part is easy but I would like to use @media print CSS for making the PDF file. I have a few ideas how to do this. Use PrinceXML, unfortuna...

jekyll - add stuff to pages automatically, on github pages

Hi! Is there a way to obtain the url of a page on Jekyll? By pages I mean non-post textile files, like about.html and download.html on the following hierarchy: root | +- _includes | +- _layouts | +- _posts | +- _config.yml | +- index.textile | +- about.textile | `- download.textile I'd like to do something like this: <...

Liquid templates - accessing members by name

I'm using Jekyll to create a new blog. It uses Liquid underneath. Jekyll defines certain "variables": site, content, page, post and paginator. These "variables" have several "members". For instance, post.date will return the date of a post, while post.url will return its url. My question is: can I access a variable's member using anoth...

Extending Jekyll and Liquid to parse post's content

My blog, powerred by Jekyll, serves out a Atom feed. --- layout: nill rooturi: http://stefan.artspace44.com --- <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"&gt; ... {% for post in site.posts %} <entry> <title>{{ post.title }}</title> <link href="{{ page.rooturi }}{{ post.url }}" /> <u...

jekyll - plugins support - how does it work?

I've just found this comment from mojombo: The latest on master now has Plugin support. Look at lib/jekyll/converters for examples of how they're done. Also, any *.rb files in a _plugins directory will be loaded so that you can create custom plugins of your own. I've had a look /lib/jekyll/converters but could not understand how th...

Push Rack-Jekyll app to Heroku

Hello, I haven't used Ruby. I don't what gems are. But I know how to install them and do basic things like that. I heard of Jekyll and decided to start my own using Heroku. I found Rack-Jekyll that will work on Heroku. I created my site as per Jekyll instructions and it is running fine on my system. Then I did what I was told to do in ...

Jekyll does not parse UTF-8

I created a page in notepad and selected UTF-8 as the encoding while saving. Jekyll does not parse this page. It renders the liquid extensions in the page as they are. Now I saved the same page using ANSI encoding. Jekyll parses that easily and my site is up and running. But it is limited only to ANSI and some characters appear as a que...

How can I install Jekyll on Ubuntu 10.04 Server?

The definitive guide to installing Jekyll seems to be http://wiki.github.com/mojombo/jekyll/install where it says: gem install jekyll I am getting an ERROR: could not find gem jekyll locally or in a repository regardless of whether I run that command as superuser or not. gem env Returns the following: RubyGems Environment: - RU...

inserting blocks of text in haml

In my Jekyll blog I use the include tag to put the contents of a file into the document. However if I attempt to do this with a HAML based document the indentation of the included text is wrong. :preserve does not work because it requires indentation. Is there a way to specify a block of text without depending on indentation? %html %b...

What makes static site generators like Jekyll and Hyde better than XML and XSLT?

The idea seems to be very similar by keeping actual content separate from the final output rendering so that changing the template or styling is trivial. ...

Installing native Ruby extensions on Windows for Jekyll

Hi Guys, I'm about to go crazy here so I'll just ask: How the hell do you install the Ruby Gem Jekyll on Windows. Jekyll depends on fast-stemmer-1.0.0 and that has to be built as a native extension I found this handy guide on RubyDevKit to install a 'sane' environment on Windows and it works, but fast-stemmer is still hell bent on us...

Jekyll vs RefineryCMS?

I know many Ruby users are using Jekyll but I wonder what the benefits that will bring over RefineryCMS? Could someone highlights the differences and pros/cons for each. ...