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

Can I create nested collections in Jekyll?

I would like to use Jekyll to create a manual that contains several chapters, each of which contains several sections, and store each section in a separate Markdown file. I want index.md to look something like this:
    {% for chapter in…
Greg Wilson
  • 1,015
  • 10
  • 24
21
votes
1 answer

Cannot reach Jekyll server on Vagrant from outside

I've built a Vagrant VM with hashicorp/precise32 box and installed Jekyll on it. I've set port 4000 forwarding on Vagrantfile: config.vm.network :forwarded_port, host: 4000, guest: 4000 When I try jekyll server it seems everything works fine, but I…
megalomono
  • 771
  • 5
  • 9
21
votes
4 answers

Hide a page in Jekyll website served by GitHub

How do I hide a page in Jekyll? I have a Contact Us page (as a Google Docs form), and there is a response page. When created, it shows up in the navigation as a child of the Contact Us page, but I don't want it to show up at all. I currently have…
mbprouser
  • 211
  • 2
  • 3
21
votes
2 answers

Set up custom subdomain for Jekyll Blog hosted in Github Pages

I created a Jekyll-powered blog and am hosting it with GitHub Pages. Now, I want to set up a subdomain (blog.example.com), but can't make it work. I have added a CNAME file with the text: blog.example.com. And I have added two A records in my…
alejorivera
  • 935
  • 1
  • 10
  • 25
21
votes
3 answers

How do I check the deploy status of Github Pages? (Specifically: Project Pages w/ Jekyll)

I have a working Github Page. (Specifically: a Project Page with Jekyll that lives at [username].github.io/[project_name]/.) I can deploy. (By pushing changes to my gh-pages branch and waiting a few minutes for it to build.) How can I check the…
thewillcole
  • 2,943
  • 3
  • 30
  • 35
21
votes
2 answers

How to pass {% captured %} variable from a view to the layout in Jekyll/Liquid?

I am trying to rebuild a blog in Jekyll and I have stubled upon a simple task. Provided I have the following set of templates: default.html: {{ head }} {{ content }} frontpage.html: --- layout: default --- {% capture head %} Frontpage {% end…
firedev
  • 20,898
  • 20
  • 64
  • 94
21
votes
4 answers

Check for existence of file using Jekyll

How can I use Jekyll to test for the existence of a file? To clarify, I want to run an {% if %} statement to check if an image file exists with the same name as the page I am on. On my page in the YAML front matter: ---- reference-design:…
Wolfr
  • 5,055
  • 4
  • 25
  • 31
21
votes
4 answers

How to display post summary on index page using Jekyll?

I am using Jekyll to create a blog by following this excellent tutorial. I would like to add a post summary on the index page. I tried using: post.content | truncatewords:50 | strip_html it works but it displays the entire post until the 50 word…
Akshat Jiwan Sharma
  • 15,430
  • 13
  • 50
  • 60
21
votes
2 answers

How to make my post not public for a while?

I'm using jekyll and github pages. I'm currently busy with new post and it's not finished yet. I'm working from different places, that's why I need to push my changes to github. I created new post and push it on github. But after push my…
Viacheslav Kondratiuk
  • 8,493
  • 9
  • 49
  • 81
21
votes
4 answers

How can I add a site search feature to a Jekyll Blog?

I am looking into migrating my site from Wordpress to Jekyll and would like to maintain the ability to have full-text search for the site. The Wordpress search was fast, reliable, and nicely formatted to match the theme, and I haven't found a…
cboettig
  • 12,377
  • 13
  • 70
  • 113
20
votes
5 answers

Jekyll: How to use custom plugins with GitHub pages?

It turns out that custom ruby plugins don't work on GitHub pages because of security concerns. I'm trying to add a plugin (this one) to the _plugins folder of my Jekyll project, but when I deploy it to GitHub it is ignored. Question: Is there a way…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
20
votes
1 answer

How to make all posts have a permalink with custom format "domain.com/blog/title"?

What I'm trying to do is get all my posts to have the following format: domain.com/blog/title. However, in my _posts folder I have a file named 2010-07-11-hello.markdown and it contains the following: --- title: Hello permalink: /blog/:title/…
Noah Clark
  • 8,101
  • 14
  • 74
  • 116
20
votes
2 answers

Jekyll redirect link

I moved my site http://www.phonations.com to Jekyll/GitHub pages. Before that, I knew how to redirect some urls on my site to external ones. How to do that now? For example, I would like http://www.phonations.com/tmwtga to redirect to…
Martin Delille
  • 11,360
  • 15
  • 65
  • 132
20
votes
1 answer

Getting a specific item from a collection in Jekyll

I'm rebuilding my company's current site in Jekyll and attempting to set up the structure around a content model using objects (files in a collection) that have attributes (key/value pairs in YAML front-matter). Simple conceptual stuff designed to…
Steve Hickey
  • 303
  • 2
  • 6
20
votes
3 answers

Jekyll - Error Running 'Jekyll Serve'

EDIT: Found the answer (see my answer below!). It involves using version 1.4.2 instead of 1.4.3, so if anyone has any ideas on getting 1.4.3 working, that could be helpful as well. Thanks! EDIT 2: Thanks to a comment below, it seems that 1.4.3 does…
Joe
  • 1,384
  • 10
  • 17