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
51
votes
10 answers

Jekyll select current page url and change its class

I've been using Jekyll for a static site (so that its easy to maintain), and have been stuck at the following feature : This is my link bar :
50
votes
8 answers

Syntax highlighting markdown code blocks in Jekyll (without using liquid tags)

It seems like syntax highlighting in Jekyll is limited to using liquid tags and pygments like so: {% highlight bash %} cd ~ {% endhighlight %} But I've imported my existing blog from wordpress and it was written in markdown (using markdown code…
markquezada
  • 8,444
  • 6
  • 45
  • 52
50
votes
5 answers

Jekyll auto reloading

Working with Jekyll for the first time, and it looks like the auto reload functionality (running jekyll --auto --server) is only triggered by updates to markdown files. Is this the normal behavior? And is there any way to get changes to other types…
danny
  • 10,103
  • 10
  • 50
  • 57
49
votes
4 answers

How to customize Jekyll's url?

I would like to use Jekyll to create a site. not a blog. Is there a way to avoid to have the creation date specified in the url and in the page's file name? I think that the idea behind Jekyll is brilliant, but it seems too tied to blog generation…
alessmar
  • 4,689
  • 7
  • 43
  • 52
49
votes
7 answers

Load Google Font with asynchronously or deferred without Font Face Observer

I want to use the Google Font "Noto Serif" for my website. My problem is that when I am testing it with Google PageSpeed Insights, it says everything is perfect except for one thing:
oatmealNUGGY
  • 775
  • 1
  • 6
  • 22
49
votes
8 answers

An easy way to support tags in a jekyll blog

I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really like to tag my posts. I can tag a post using the YAML front matter, but how do I generate pages for each tag that can will list all…
raheel
  • 1,407
  • 1
  • 15
  • 24
48
votes
5 answers

jekyll debug or print all variables

I want to peak into Jekyll's brain and see what's going on, in php you have get_defined_vars, so I tried to do something akin to that with: {% for local_variable in local_variables %}

{{ local_variable }}


{% endfor…
thoth
  • 1,112
  • 2
  • 9
  • 15
46
votes
2 answers

In Jekyll, is there a concise way to render a Markdown partial?

I've got a Markdown-formatted sidebar that I'd like to show up in my Jekyll blog. I'd previously tried to include it like {% include sidebar.markdown %} but it wouldn't actually render the Markdown. I can successfully include it like: {% capture…
S M
  • 8,155
  • 3
  • 35
  • 36
46
votes
5 answers

Jekyll how to display an image in a post

I am trying to follow the Jekyll docs and am stuck on how to display an image --- layout: post title: "My first post!" date: 2016-10-20 16:17:57 +0200 categories: jekyll update regenerate: true --- This is in the `_posts` directory. It can be…
Clive Tristram
  • 561
  • 1
  • 4
  • 4
46
votes
4 answers

markdown link opening in new tab

Is there a way to open the below markdown link in new tab? I've got some result from markdown target=“_blank”, but in my case it's different have used <> symbol to projected the link. http://google.com Not used the usual…
Kishore Mohan
  • 1,020
  • 1
  • 9
  • 15
46
votes
7 answers

Jekyll Filename Without Date

I want to build documentation site using Jekyll and GitHub Pages. The problem is Jekyll only accept a filename under _posts with exact pattern like YYYY-MM-DD-your-title-is-here.md. How can I post a page in Jekyll without this filename pattern?…
krisanalfa
  • 6,268
  • 2
  • 29
  • 38
46
votes
7 answers

Upload images to GitHub from the browser

I am using GitHub Pages, Jekyll, and Prose to manage a Website. Everything works fine, besides I cannot find a way to upload images. The Prose image uploader is not working probably as discussed in various tickets (for instance here). Since the…
ustroetz
  • 5,802
  • 16
  • 47
  • 74
46
votes
6 answers

Jekyll for loop over all images in a folder?

I'd like to make a dirt-simple portfolio of sorts on my jekyll blog. I have all my image files in a folder. Currently, I have it generating the photos page like this:


viraj_os
  • 738
  • 1
  • 5
  • 11
44
votes
7 answers

bundle exec jekyll serve: cannot load such file

I am trying to contribute to a Github Page/Jekyll site and want to be able to visualise changes locally but when I run bundle exec jekyll serve but I get this output: bundler: failed to load command: jekyll…
tukanium
  • 786
  • 1
  • 5
  • 14
42
votes
4 answers

How to adjust Jekyll post order?

I have started a Jekyll based blog with a theme jekyll-now. I am new to Jekyll and how it operates (especially Liquid). I understand that new posts need to be as follows: 2014-10-04-Hello-World.md. But I really don't understand how I could order…
Koxzi
  • 1,021
  • 1
  • 10
  • 21