Jekyll not parsing includes?
This blog is hosted on GitHub and powered by Jekyll, a “blog-aware, static site generator in Ruby” that GitHub uses. Think of it as a way to build a blog that allows for some dynamic templating but is entirely driven by files. Quick tangent: if you build sites for a living but find yourself kind of exhausted with big, feature-rich CMSs by the time you come home, Jekyll just might be what it takes to make blogging for yourself fun again.
To the main point: Jekyll’s documentation boldly proclaims this about its includes:
If you have small page fragments that you wish to include in multiple places on your site, you can use the
% include sig.textile %
Jekyll expects all include files to be placed in an
_includesdirectory at the root of your source dir. So this will embed the contents of
/path/to/proto/site/_includes/sig.textileinto the calling file.
This might lead you to believe that Jekyll will parse Textile formatting in your included file (or Markdown formatting, for you infidels). But you would be mistaken. Jekyll will do no such thing: it will blithely output anything you toss into that optimistically named
.markdown file as unparsed text.
For the moment, the only solution is to abandon our futile dreams of parsed includes and use straight html. But let’s see if we can at least get the documentation changed.