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:

232 questions
3
votes
1 answer

How to link post categories in Jekyll

I've got the following code in my index.html for Jekyll. I'm trying to find a way to link the categories associated with each post to the actual post themselves. So, if a post contains the category "travel" I want to click on a link that says…
hikaru12
  • 77
  • 7
3
votes
1 answer

Ingore tag using html-proofer with jekyll

I have a site hosted with github pages built using Jekyll. One of the plugins I have installed in html-proofer. This was working fine until I switched my images to use picturefill. By using Picturefill, I am using the currently invalid
3
votes
1 answer

In Jekyll (ie. Markdown), can the base portion of a set URLs be shared among links?

The MD syntax allows for two basic way to do links: [title](link) and [title][reference]. The [reference] can be used multiple times in a document, but it is only for absolute URLs. What if I'm doing a code blog and am frequently referencing API…
jordanpg
  • 6,386
  • 4
  • 46
  • 70
3
votes
2 answers

how to write a table of contents with jekyll and redcarpet

using jekyll 2.0.3, I initially configured _config.yml with markdown: kramdown and I was able to add a table of contents as follows, in my example.md: --- layout: page title: Sample --- {:toc} ## section 1 ## section 2 however, I switched to…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
3
votes
1 answer

Pandoc citation in figure caption and alt text

I am using jekyll with pandoc markdown plugin to render citations in static html pages. This works well with markdown text, but does not seem to work in figure captions that are transformed into alt-text in the final html. Markdown example with a…
Pavel
  • 151
  • 9
2
votes
3 answers

How to bundle multiple static files as zip archive for download

My Jekyll page is meant to provide sample solutions for a coding book's exercises. The solutions are a bunch of .cpp files (C++ code files) stored in a folder inside my Jekyll project so that I can open the same folder in an IDE. I've managed to…
PhilLab
  • 4,777
  • 1
  • 25
  • 77
2
votes
1 answer

Redirecting multiple webpages on GitHub Pages

I read GitHub pages documentation for enabling redirects on GitHub Pages using the jekyll-redirect-from plugin. I was able to redirect from one page to another, but I have some different requirements. I need to redirect all pages from a starting…
pandafy
  • 184
  • 13
2
votes
2 answers

How can I exclude archive generated pages from my sitemap?

I'm using the Jekyll archive plugin to generate blog tag pages and category pages. These pages are being included in my sitemap (I'm using the Jekyll sitemap plugin). Is there any way to exclude these pages from the sitemap? Because the archive…
skimberley
  • 23
  • 3
2
votes
0 answers

Jekyll responsive image plugin won't render

I am using the jekyll responsive image plugin. I have a template like i should, and it can reach the template and the css. It does render a img code, but the path is wrong an it does not render any resized images. Here is my template: {% capture…
2
votes
3 answers

How to Install/Use Jekyll Plugins in GitHubPages?

I've created a GitHubPage together with Jekyll, and currently I'm trying to use some of the basic plugins that are available. So far nothing fancy, I'm using the whitelisted plugins, specifically this one. It opens links in new tabs, which isn't…
Sach
  • 10,091
  • 8
  • 47
  • 84
2
votes
0 answers

jekyll: check request country

I saw there was some plugins that are handling "localization" like: https://github.com/prometheus-ev/jekyll-localization https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin https://github.com/incompl/jekyll-localize But the are…
eLRuLL
  • 18,488
  • 9
  • 73
  • 99
2
votes
1 answer

Exclude files based on the JEKYLL_ENV?

In a Jekyll site one excludes files like this: exclude: - "*.json" - "Gemfile*" - "*.txt" - vendor - README.md - somefile.html So to create the production build I run: $ JEKYLL_ENV=production bundle exec jekyll build How can…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
2
votes
3 answers

Passing args to class method Ruby

I'm newbie in Jekyll, Ruby. I'm trying to create my custom plugin for Jekyll. So far my code below. I don't understand Ruby compiler behavior, now this code doesn't work, with error undefined method scan, but if I place everything from parse to…
Rami Chasygov
  • 2,714
  • 7
  • 25
  • 37
2
votes
2 answers

How can I "watch" multiple source directories in Jekyll?

I'm pretty sure I've seen in Jekyll blog projects with multiple source document directories, such as _posts and _pages, but the source parameter in the _config.yml file can only take 1 directory as its argument, and neither an array nor a space…
Keith Bennett
  • 4,722
  • 1
  • 25
  • 35
2
votes
1 answer

Testing Jekyll plugin with Cucumber

I am developing a plugin for Jekyll and want to use Cucumber and Aruba to test it. My plugin is currently just adding a command to Jekyll like it specifies here: https://jekyllrb.com/docs/plugins/#commands I'm bundling this as a gem. This is the…
NateW
  • 2,101
  • 3
  • 28
  • 37