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
29
votes
4 answers

How do I protect a directory within github-pages?

I am building my personal website using Jekyll and hosting it at github-pages. I would like to have a password protected area (just password protected directory, not the whole website). I have tried a few options and tricks to get htaccess to work…
Mustafa
  • 1,814
  • 3
  • 17
  • 25
29
votes
1 answer

YAML front matter for Jekyll and nested lists

I have a set of nested yaml lists with something like the following: title: the example image: link.jpg products: - top-level: Product One arbitrary: Value nested-products: - nested: Associated Product sub-arbitrary: Associated…
motleydev
  • 3,327
  • 6
  • 36
  • 52
28
votes
2 answers

Liquid markup to detect current page URL?

I've just recently started using Github to host my blog (using Jekyll and Liquid). However, I'm having an issue which I can't currently fix. The issue could be hacked/solved if I was able to detect which "page" or "url" the user was…
user623990
28
votes
2 answers

Highlight with Jekyll and pygments doesn't work

I want to use pygments with jekyll I have the following code: {% highlight java %} NullPointerException at org.springframework.core.GenericTypeResolver.getTypeVariableMap {% endhighlight %} When I generate my site with jekyll --pygments, the html…
denisjacquemin
  • 7,414
  • 10
  • 55
  • 72
28
votes
4 answers

Using filters in Liquid tags

I'm using jekyll and Liquid to generate a static web site on github pages. I want to base some content decisions on whether the amount of content in a document has reached a specific number of works. jekyll has a liquid filter which counts the…
drekka
  • 20,957
  • 14
  • 79
  • 135
28
votes
7 answers

don't have jekyll-paginate or one of its dependencies installed

I have installed this jekyll theme. But faced with one issue. If I do: bundle exec jekyll serve All work fine (_site folder contains necessary files and server is running), but if I use the following command: jekyll build -d…
ztsv
  • 880
  • 2
  • 12
  • 27
28
votes
4 answers

Jekyll Github pages how to hide a post

I am using jekyll with Github pages for my website. I am trying to make some posts not visible in the home but they can be linked from another post. In the frontmatter I tryed to add a field visible like this: --- layout: post title: excerpt:…
kilian
  • 385
  • 2
  • 5
  • 11
28
votes
1 answer

Including markdown inside yaml front-matter

One of my web pages needs to include rows of items (image, title, description). The description must accept markdown. I haven't found any way to do this in Jekyll without plugins or creating multiple files, one for each item. Another requirement is…
Bernard
  • 16,149
  • 12
  • 63
  • 66
28
votes
7 answers

Github contact form with jekyll?

I'm planning on building and deploying a static site on github. If i was to do that is it still possible to have a contact form? It seems that's the only set of dynamic functionality that's going to exist on my particular website. Would i have to…
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
28
votes
9 answers

Locale specific date in jekyll

I am trying out jekyll for website creation. I am using jekyll-bootstrap. The default configuration has the page archive, where all the posts are listed grouped by year and month of the post date. Currently the months appear in English. I've looked…
mpiktas
  • 11,258
  • 7
  • 44
  • 57
27
votes
5 answers

In Jekyll How do I grab a post's first image?

In my index of blog posts I'd like to grab the first image from the post to display it in the index using just liquid so it works on github pages. I have a feeling split is the way to go, but I'm not good with liquid. I'd like to be able to get the…
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
27
votes
2 answers

Jekyll: How to get markdown parsing inside blocks using Kramdown?

Per the Kramdown docs, setting the option parse_block_html should allow for processing of markdown (Kramdown) syntax inside html blocks. In my _config.yml, I have the settings as: --- name: Blog Name markdown: kramdown kramdown: parse_block_html:…
pete
  • 2,739
  • 4
  • 32
  • 46
27
votes
1 answer

Jekyll use config.yml values in the HTML

Is it possible to setup configuration values within the config.yml file and have them be printed within the HTML page within Jekyll? I would like to set the default title and description of my website within the config.yml file and have them printed…
matsko
  • 21,895
  • 21
  • 102
  • 144
26
votes
7 answers

Using liquid to sort posts alphabetically

Is there a way to sort a number of posts alphabetically, using Jekyll? I have something like this now: {% for post in site.categories.threat %}
  • {{ post.title }}
  • {% endfor %} It works, but the posts are jumbled…
    Jacques Tardie
    • 567
    • 2
    • 10
    • 16
    26
    votes
    5 answers

    How do you remove header on Github Pages?

    I am trying GitHub Pages for my developer blog post, unfortunately I am having a hard time deleting the header part after choosing a theme. Even though I already edited the Readme.md, the header is still there and I can't even remove or edit it. Do…
    Willy David Jr
    • 8,604
    • 6
    • 46
    • 57