Questions tagged [jekyll-extensions]

plugins for the Jekyll CMS

Jekyll has a plugin system with hooks that allow you to create custom generated content specific to your site. You can run custom code for your site without having to modify the Jekyll source itself.

Related links

Similar tags:

215 questions
24
votes
4 answers

How can I make Jekyll use a layout without specifying it?

In order to keep some of my Jekyll sites simple, I'm always using the same layout. That is to say, I'm always writing something like. . . --- layout: default title: Here's my Title --- . . . as the YAML Front Matter at the top of my pages. What…
Philip Durbin
  • 3,912
  • 2
  • 23
  • 35
22
votes
2 answers

How do I configure GitHub to use non-supported Jekyll site plugins?

I just created a great gallery for my Jekyll blog which builds perfectly on my localhost:4000. However, GitHub pages doesn't support the Jekyll Gallery Generator plug-in I am using: https://github.com/ggreer/jekyll-gallery-generator I read about the…
aaron-coding
  • 2,305
  • 19
  • 31
19
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
  • 19,222
  • 18
  • 58
  • 91
16
votes
3 answers

Github pages: Why do I need a gh-pages

I have deployed a personal blog using Github pages and I see that some tutorials tell you to create a gh-pages branch. I did that, however, my changes to the website are visible only if I make changes to my master. So, I'm confused as to why I need…
user1142130
  • 1,421
  • 2
  • 16
  • 30
13
votes
2 answers

Static Comments System for Jekyll

My blog currently runs Jekyll and the Minimal Mistakes theme, and uses the theme's built in functionality to add the Disqus comments system. This JavaScript-based commenting system, to me sort of defeats the purpose of having a static blog in…
Bastiaan Quast
  • 2,057
  • 19
  • 43
10
votes
1 answer

Jekyll filter for regex substitution in content?

Is there a Jekyll filter that will replace text using a regular expression (regex) filter? I believe the "built-in" filter replace does simple string substitution.
sameers
  • 4,447
  • 2
  • 28
  • 42
9
votes
2 answers

How to create a liquid tag extension which return filename in Jekyll

It's pretty basic stuff, I guess but I couldn't figure out how to do it. What I want to do is very simple. By using Jekyll plugin system, I want to extend Liquid tag to return filename of post. {{% page.filename %}} will parse to something…
studiomohawk
  • 380
  • 1
  • 3
  • 12
9
votes
3 answers

Jekyll Dependency Error when Upgrading from 2.x to 3.x

Following the official update guide, I recently upgraded from Jekyll 2.x to Jekyll 3.1.1. After the installation, running jekyll serve produced the following error: Dependency Error: Yikes! It looks like you don't have jekyll-markdown-block or one…
James Taylor
  • 5,468
  • 6
  • 42
  • 62
9
votes
2 answers

How to get Markdown processed content in Jekyll tag plugin

I'm working on a Jekyll tag plugin for my Octopress site to help me make a 'note' element. I just want to be able to highlight a piece of information on my blog as a side note, like this. The problem is, I can't figure out how to get the contents…
rharter
  • 2,416
  • 15
  • 31
8
votes
2 answers

Using octopress with emacs org-mode for blogging

Is there any example of using Org-mode with octopress for blogging? I want to use org-mode for all the blog posts and export it to html. I understand this is possible, is there any example for this to learn and do the same.
18bytes
  • 5,521
  • 7
  • 40
  • 64
8
votes
1 answer

Jekyll: How to pass a Ruby object to a template?

For example, say I'd like to generate this array: random_numbers = [] 1000.times { random_numbers << rand(2) } And pass it to a template, so that I can access it from Liquid: {% for num in random_numbers %} ... here I'd use logic around the…
Steph Thirion
  • 9,093
  • 9
  • 48
  • 58
7
votes
1 answer

Show pages under one folder in Jekyll?

I think the native way of managing pages of Jekyll, i.e. by creating .md file / folders under the root folder, is a bit messy. Thus I want to put, every page I want to show, into the folder called "pages". Additionally, I'd like these pages to have…
songyy
  • 3,881
  • 4
  • 36
  • 58
7
votes
1 answer

Octopress can't build with Code Block

I try to do something like this Octopress code block But I can't make it work. It always shows the following error. My machine is Windows 7. $ rake generate ## Generating Site with Jekyll unchanged sass/screen.scss Configuration from…
maxisam
  • 20,632
  • 9
  • 67
  • 77
6
votes
1 answer

Jekyll not interpreting markdown

I'm creating a site using jekyll.rb. I have a page called about.html:
{% include about_content.markdown %}
In about_content.markdown I have some dummy markdown: A First Level Header ==================== A…
Gabriele Cirulli
  • 9,534
  • 23
  • 65
  • 97
6
votes
2 answers

How to open URLs in new tab in config.yml of Jekyll / Github pages site?

I'm self-taught/totally new to Jekyll and Github Pages and was wondering how to go about opening a URL in a new tab with markdown in the config.yml page. This is the website theme I'm using. I want the last 'github' link to open in a new tab,…
1
2 3
14 15