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

5780 questions
73
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,035
  • 1
  • 8
  • 9
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
  • 24,205
  • 5
  • 64
  • 96
69
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
68
votes
2 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
  • 6,543
  • 12
  • 54
  • 91
68
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
  • 939
  • 2
  • 10
  • 16
68
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,483
  • 1
  • 12
  • 19
66
votes
13 answers

Using Live Reload with Jekyll

I'm getting started with Jekyll static site generator and I would like to use Live Reload with it. I know Jekyll has a generator and server commands, and Live Reload can run various compilers and custom commands. How do I configure these to work…
Andrew
  • 196,883
  • 184
  • 487
  • 673
66
votes
3 answers

Jekyll on Github Pages: any way to add footnotes in Markdown?

I've recently switched over to using Jekyll on Github Pages for my various blogs, and love that I can just push Markdown to Github and they handle the processing. I'd like to continue using it this way (rather than running Jekyll locally and just…
Brock Boland
  • 13,320
  • 10
  • 31
  • 36
65
votes
25 answers

Error Installing Jekyll - Native Extension Build

I'm having some trouble installing jekyll. Can't quite figure out how to patch the missing link. I think it's an update to Ruby, but RVM is having trouble installing alternate versions of ruby as well. Heres the full post: $ sudo gem install jekyll…
Robb Schiller
  • 1,119
  • 2
  • 9
  • 17
64
votes
5 answers

How to support latex in GitHub-pages?

I use jekyll to write post and show it in GitHub-pages. My source file is written with markdown. How can I insert formula into the markdown file? I don't want to save the formula into an image and load the image in markdown file. I actually want to…
Samuel
  • 5,155
  • 11
  • 46
  • 69
61
votes
7 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
  • 862
  • 1
  • 8
  • 11
60
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,532
  • 2
  • 22
  • 46
59
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,084
  • 1
  • 9
  • 12
58
votes
2 answers

Comment out an include statement inside an HTML file using Jekyll

Is there a way to comment out an include statement inside an HTML file using Jekyll? For example I have this inside one of my HTML files that I'd like to temporarily comment out. Standard HTML comment doesn't seem to work. {% include navbar.html %}…
Amit
  • 715
  • 1
  • 5
  • 9
58
votes
6 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,168
  • 3
  • 17
  • 29