Questions tagged [jekyll]

Jekyll is a blog-aware, static site generator written in Ruby. Please refer to https://talk.jekyllrb.com before asking your question.

Jekyll logo

Jekyll is a blog-aware, static site generator written in Ruby.

It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache, the built-in WEBrick server or the web server of your choice. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog with GitHub.

Jekyll also offers a way to customize it via plugins written in Ruby.


Notable site using it:

Resources:


Latest Release:

Gem Version

6232 questions
80
votes
3 answers

How to concatenate / append a string to another one in Jekyll / Liquid?

To be clear, assuming: {% assign my_var = "123" %} {% assign another_var = "456" %} I would like to append string to my_var to get something like 123 - 456 What I have tried so far: {% assign my_var = my_var + " - " + another_var %}
AsTeR
  • 7,247
  • 14
  • 60
  • 99
79
votes
9 answers

Using MathJax with Jekyll

I have a Jekyll blog and I want to use MathJax with it, in the sense that I want to be able to type something like $$\sum_{n=1}^\infty 1/n^2 = \frac{\pi^2}{6}$$ in my markdown files, and have the correct LaTeX expression generated with MathJax, in…
Chris Taylor
  • 46,912
  • 15
  • 110
  • 154
79
votes
8 answers

What is the best approach for redirection of old pages in Jekyll and GitHub Pages?

I have blog on github pages - jekyll What is the best way to solve url strategy migration? I found the best practice in common is create htaccess like so Redirect 301 /programovani/2010/04/git-co-to-je-a-co-s-tim/…
Mailo Světel
  • 24,002
  • 5
  • 30
  • 40
78
votes
2 answers

How do I chain if statements in Jekyll?

I am using a logic operator in Jekyll but it's not working. Page one, two and three all use the same layout (part of a multilingual solution, works good but requires logical loops for some layout control to keep things DRY.) Here's the code: {% if…
motleydev
  • 3,327
  • 6
  • 36
  • 52
77
votes
6 answers

How do I use disqus comments in github pages blog (Markdown)?

Is it possible to integrate disqus html comments in a blog using github-pages? I like the idea of using github, jekyll and markdown to manage my site and blog for simplicity. However, I'd like to include disqus commenting capability. However,…
Jon
  • 1,039
  • 2
  • 11
  • 16
76
votes
10 answers

Why do I get a "permission denied" error while installing a gem?

I'm attempting to install Jekyll. After running gem install jekyll I get this error: ERROR: While executing gem ... (Errno::EACCES) Permission denied - /usr/local/lib/ruby/gems/2.0.0/gems/jekyll-1.0.3/CONTRIBUTING.md I can see that Jekyll is…
okTalk
  • 1,112
  • 1
  • 10
  • 11
75
votes
5 answers

How to solve "/usr/bin/env: ruby_executable_hooks: No such file or directory"?

I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error: remote: /usr/bin/env: ruby_executable_hooks: No such file or directory I searched for a while, and tried…
Nan Ma
  • 1,065
  • 1
  • 8
  • 11
74
votes
6 answers

Local post assets with Jekyll

I was wondering how other people are organising their assets for individual posts when using Jekyll. For example, if a post has an image, do you just dump it in a shared images folder? I don't really like the idea of doing this - it means that an…
user1082754
73
votes
4 answers

Get today's date in Jekyll with Liquid markup

This (should) be easy, I think, but I'm unable to get today's date to show in a Jekyll page using Liquid markup. According to the documentation, I should be able to do this to get this date's year: {{ 'now' | date: "%Y" }} But all that gets…
Jeff Pratt
  • 1,619
  • 1
  • 13
  • 21
71
votes
2 answers

Does Liquid have a "does not contain" or "not in array" operator?

When calling items from an array in a Liquid template, how do you call does not contain or not in array?
mike
  • 1,786
  • 2
  • 19
  • 31
70
votes
7 answers

how to include video in jekyll markdown blog

I just started blogging using jekyll. I write my posts in markdown. Now, I want to include a youtube video in my post. How can I do this? Also, I dont really like the pygments highlighting provided by jekyll by default. Is there anyway I can change…
jacksparrow007
  • 1,298
  • 4
  • 19
  • 30
69
votes
10 answers

Sorted navigation menu with Jekyll and Liquid

I'm constructing a static site (no blog) with Jekyll/Liquid. I want it to have an auto-generated navigation menu that lists all existing pages and highlight the current page. The items should be added to the menu in a particular order. Therefore, I…
flyx
  • 35,506
  • 7
  • 89
  • 126
68
votes
8 answers

301 redirect for site hosted at github?

Here's a Github repository of mine: https://github.com/n1k0/casperjs There's a gh-pages branch to hold the project documentation, which is basically the project website: https://github.com/n1k0/casperjs/tree/gh-pages This branch setups the…
NiKo
  • 11,215
  • 6
  • 46
  • 56
67
votes
4 answers

Passing parameters to inclusion in Liquid templates

On my Jekyll-powered website I have an inclusion that does something function-like, but I can't figure out how to pass it parameters correctly. When I use {% include ... %}, passing parameters like this.. {% include function.liquid foo="{{ baz.quux…
Nick
  • 2,662
  • 2
  • 25
  • 48
67
votes
10 answers

How to change the default order pages in Jekyll?

My blog is built with Jekyll on Github. In the navigation bar, the default order is Pages, Messages, About, Archives. I want to change the list to Pages, Archives, About, Messages. What should I do? I think it is related to the code below {% assign…
Ever
  • 1,164
  • 1
  • 9
  • 13