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
34
votes
6 answers

Jekyll — Change layout if page is a post?

In a Jekyll layout, is there any way to detect if the page is a normal page or a post? I want to display post titles, but not page titles. Like this: {% if page.is_post? %}

{{ page.title }}

{% endif %} {{ content }}
Zaz
  • 46,476
  • 14
  • 84
  • 101
33
votes
4 answers

jekyll error building page related to kramdown parser

Whenever I run the bundle exec jekyll serve it returns the error Dependency Error: Yikes! It looks like you don't have kramdown-parser-gfm or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install…
yoon
  • 460
  • 1
  • 5
  • 8
33
votes
6 answers

How can I generate JavaScript API documentation for GitHub Pages

There are a lot of great options for generating API documentation for other languages, but I have yet to find a solution for my JavaScript API that I want to host on GitHub Pages. It seem that I can use JSDoc3 but I would need to create a custom…
33
votes
4 answers

Including CSS stylesheets in Jekyll pages

I have been playing around with Jekyll for a couple of weeks now and I am trying to create a default style for each of my blog posts, but I'm not exactly sure where and how it's supposed to be done. My main index page works fine in terms of styling…
gabed123
  • 515
  • 3
  • 8
  • 19
33
votes
3 answers

Check if current page is homepage on Jekyll

There's any way to check if the current page is the homepage? I want use h1 tag for the logo image only when the current page is the website base url.
Christopher
  • 3,379
  • 7
  • 25
  • 36
33
votes
3 answers

Use a subdirectory as root with htaccess in Apache 1.3

I'm trying to deploy a site generated with Jekyll and would like to keep the site in its own subfolder on my server to keep everything more organized. Essentially, I'd like to use the contents of /jekyll as the root unless a file similarly named…
Andrew
  • 36,541
  • 13
  • 67
  • 93
32
votes
4 answers

Adding Bootstrap to Jekyll

I'm new to Jekyll and would like to pull in some of the Twitter Bootstrap functionality. Has anyone done this and, if so, do you have any advice? I would have gone with Jekyll-Bootstrap, but there is no longer support for it. I have built my Jekyll…
maximos
  • 323
  • 1
  • 3
  • 4
31
votes
4 answers

Jekyll & KramDown - How to Display Table Border

I am using Jekyll default kramdown. I have a table showed using surround text, etc. | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | …
vancexu
  • 1,548
  • 3
  • 19
  • 30
31
votes
4 answers

Jekyll Paginator not working

I am currently working on a jekyll based homepage and I cant get pagination working.
31
votes
4 answers

Github flavored Markdown and pygments highlighting in Jekyll

I've deployed my Jekyll blog on a VPS. I would now like to add Github-flavored Markdown to it, using Pygments highlighting, but I don't know which files do I have to edit and how. So far, the only file I've configured is _config.yml which looks like…
oFca
  • 2,830
  • 6
  • 31
  • 43
30
votes
3 answers

Jekyll Bootstrap based blog - Expire headers?

I have a Jekyll bootstrap based blog hosted on Github pages. My problem is: Every time I change something on my web page, I have to forcefully reload the page (CTRL + R) to see the changes. Jekyll or my browser does not seem to realize that there is…
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
30
votes
1 answer

bundler: failed to load command: jekyll

When running bundle exec jekyll serve I get bundler: failed to load command: jekyll MacOS 12.0.1 Gemfile: gem "jekyll", "~> 4.2" # Plugins group :jekyll_plugins do gem "jekyll-admin" # https://github.com/jekyll/jekyll-admin gem "jekyll-feed" #…
Jordan Bowman
  • 567
  • 1
  • 5
  • 11
30
votes
5 answers

How to show the modification date of a file in Jekyll?

I know that I can specify a variable date in the YAML frontmatter of a file and access its value with {{ page.date }}. This is cumbersome since one easily forgets to change the date when a file is updated. So how can I access a file's modification…
Robert
  • 872
  • 3
  • 10
  • 15
29
votes
1 answer

Jekyll theme could not be found

Following the jekyll documentation found here: https://jekyllrb.com/docs/themes/ I was trying to install and change a gem based theme so I have chosen the jekyll-theme-primer for this and I've run the following command and instructed under the…
Isaz
  • 395
  • 1
  • 3
  • 5
29
votes
5 answers

Error installing Jekyll, requires Ruby >= 2.0.0

I get the error Error installing jekyll: jekyll requires Ruby version >= 2.0.0. when I run sudo gem install jekyll "ruby -v" says I have ruby version 1.9.3 How do I install Jekyll? Do I need to upgrade ruby? If so, how? Update - I installed…
faehnrich
  • 331
  • 1
  • 3
  • 7