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
327
votes
2 answers

What is the difference between 0.0.0.0, 127.0.0.1 and localhost?

I am using Jekyll and Vagrant on my mac. I found that Jekyll server will bind to 0.0.0.0:4000 instead of 127.0.0.1:4000. Also gem server will bind to this address by default. I can still visit it via http://localhost:port. But for Jekyll, it seems…
Ciel
  • 3,931
  • 5
  • 15
  • 22
281
votes
12 answers

Representing Directory & File Structure in Markdown Syntax

I want to describe directory & file structures in some of my Jekyll blog posts, does Markdown provide a neat way of outputting such a thing? For example, you can see at this link on the Jekyll website that the directory & file structure is output on…
Matt Rowles
  • 6,057
  • 17
  • 54
  • 84
240
votes
15 answers

find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)

I used sudo bundle install and that might be the cause of the issue? Now I have: gem -v 2.6.14 ruby -v ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-darwin15] jekyll -v jekyll 3.6.2 bundle -vBundler version 1.16.0.pre.3 I'm getting the…
Alvaro
  • 37,936
  • 23
  • 138
  • 304
184
votes
11 answers

Using an image caption in Markdown Jekyll

I am hosting a Jekyll Blog on Github and write my posts with Markdown. When I am adding images, I do it the following way: ![name of the image](http://link.com/image.jpg) This then shows the image in the text. However, how can I tell Markdown to…
orschiro
  • 15,631
  • 18
  • 54
  • 86
157
votes
6 answers

jekyll markdown internal links

Jekyll uses Markdown-formatted links, but how can I link to internal content? [[link]]
JuanPablo
  • 21,182
  • 32
  • 102
  • 155
105
votes
9 answers

Jekyll post not generated

I am trying to add a new post to my Jekyll site, but I cannot see it on the generated pages when I run jekyll serve. What are some common reasons for a Jekyll post to not be generated?
aronisstav
  • 7,148
  • 4
  • 21
  • 45
96
votes
6 answers

How does Jekyll date formatting work?

I'm using Jekyll to generate a simple site. I want the date field to display in the format 12 September 2011. I've found, through some creative googling, a bit of date-format manipulation, but nothing that seems to get me the month name. What I have…
Michael
  • 1,097
  • 1
  • 8
  • 7
96
votes
5 answers

Escaping double curly braces inside a markdown code block in Jekyll

I'm using Jekyll to create a documentation site wherein I am trying to document some code that contains handlebars-like syntax. For example {{foo}}. The problem is that Jekyll uses liquid tags and no matter what I do, my double curlies are getting…
rescuecreative
  • 3,097
  • 2
  • 14
  • 25
96
votes
2 answers

Connect to a locally built Jekyll Server using mobile devices in the LAN

After using jekyll serve on one machine, a WEBrick server is set up and the site can be accessed from localhost:4000 on this particular PC. However, I'm wondering how to access this web server from other machines in the LAN, especially for mobile…
Yi Zeng
  • 29,005
  • 11
  • 87
  • 116
90
votes
8 answers

TCPServer Error: Address already in use - bind(2)

Jekyll was working fine for me few weeks back but now all of a sudden it gives me the following error: TCPServer Error: Address already in use - bind(2) INFO WEBrick::HTTPServer#start: pid=7300 port=4000 % lsof -i :4000 Even…
Omnipresent
  • 27,174
  • 47
  • 133
  • 181
82
votes
12 answers

Jekyll - Automatically highlight current tab in menu bar

I am using github to host a static site and Jekyll to generate it. I have a menu bar (as
    ) and would like the
  • corresponding to the current page to be assigned a different class for CSS highlighting. So something like pseudo code:
    paperjam
    • 7,556
    • 11
    • 45
    • 71
79
votes
1 answer

Change site.url to localhost during jekyll local development

My jekyll blog template have links to resources and pages like so: {{ site.url }}/my-page.html This works well in deployment, but when I run jekyll serve in development, all of the links point to the live page instead of the development…
Heisenberg
  • 6,824
  • 8
  • 44
  • 87
78
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
  • 17,483
  • 5
  • 27
  • 40
74
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,007
  • 6
  • 26
  • 45
74
votes
8 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
  • 44,831
  • 12
  • 101
  • 146
1
2 3
99 100