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
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
  • 4,323
  • 6
  • 41
  • 63
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
  • 21,975
  • 9
  • 75
  • 84
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…
kettlepot
  • 10,574
  • 28
  • 71
  • 100
6
votes
2 answers

How to paginate posts by author

What I'm trying to do Jekyll can use front matter variables like tags and categories and access them with site.tags and site.categories to iterate over them using liquid. Now my problem is that I can't do this with a custom front matter variable…
blkpingu
  • 1,556
  • 1
  • 18
  • 41
6
votes
0 answers

Display page views based on Google Analytics in Jekyll

Is there any way to display page views based on Google Analytics on a Jekyll site? We’ve been using jekyll-ga plugin, but it hasn’t been updated in a very long time. So updating, for example, google-api-client (to use it with the newest version of…
6
votes
1 answer

How can I change the default tab size in highlighted code in Jekyll 3.0?

If I did: {% highlight C %} .... code {% endhighlight %} For any tab I use between the highlighted C, I'd like the tab size to be 2 rather than 4. Doing {% highlight C tabsize=2 %} doesn't seem to work in Jekyll 3. The answers I have seen on SO…
AlwaysQuestioning
  • 1,464
  • 4
  • 24
  • 48
6
votes
1 answer

How do I monkey-patch a Jekyll extension or plugin?

I'd like to override a gem method (a Jekyll extension) that looks like this: File: lib/jekyll-amazon/amazon_tag.rb. module Jekyll module Amazon class AmazonTag < Liquid::Tag def detail(item) ... end end …
Scott C Wilson
  • 19,102
  • 10
  • 61
  • 83
6
votes
3 answers

Prevent line-wraps of code blocks using jekyll, kramdown, and rouge

Using kramdown and rouge for markdown syntax-highlighting in a jekyll blog, I'd like to prevent long lines of code from wrapping onto a new line. I'd like to be able to use a horizontal scrollbar to reveal the rest of the content. Here is the jekyll…
s2t2
  • 2,462
  • 5
  • 37
  • 47
6
votes
2 answers

CSS file not found when pushing a Jekyll project to gh-pages remote branch and using jekyll-compass

I was building my site with css and everything was working fine, both locally and remotely. Then I wanted to switch to sass. I installed jekyll-compass and now my sass files are being output as css files in my _site/css folder. Everything works well…
6
votes
2 answers

How can you access page properties (YAML front matter) within a converter plugin

I'm writing a converter plugin for Jekyll and need access to some of the page header (YAML front matter) properties. Only the content is passed to the main converter method and does not seem possible to access the context. Example: module Jekyll …
pipe-devnull
  • 332
  • 2
  • 5
6
votes
3 answers

wrong argument type String (expected Array)

I'm trying to use Octopress (a blogging engine on top of Jekyll) on my new Macbook, and I get this error when I run bundle exec jekyll --server: (shortened path) /path/to/markdown.rb:118:in `to_html': wrong argument type String (expected Array)…
grautur
  • 29,955
  • 34
  • 93
  • 128
5
votes
1 answer

Jekyll - Get all folders in a directory and generate pages

I have a folder structure like so: /gallery/images/category1/ /gallery/images/category2/ /gallery/images/category3/ /gallery/images/category4/ /gallery/images/category5/ and so on.. Inside each of these folders, there are a bunch of images.…
bryan
  • 8,879
  • 18
  • 83
  • 166
5
votes
1 answer

Liquid syntax error for 'gist' tag with github-pages gem for Jekyll

I have a Jekyll site that is hosted on Github Pages. I am trying to get my site to render locally before I push to Github, but I get the following error when running bundle exec jekyll serve --safe: Liquid Exception: Liquid syntax error (line 13):…
mprat
  • 2,451
  • 15
  • 33
5
votes
2 answers

Support for adding lazy load for images in Markdown

I'm using kramdown parser to convert markdown to html. I want to use lazy load for images without modifying original markdown syntax. I can achieve this by editing link.rb file in kramdown gems. But I don't want to follow this way. Because if…
Arasu RRK
  • 1,078
  • 16
  • 28
5
votes
1 answer

Why is the site.categories array not being output in Jekyll?

I'm building pages (not posts) in Jekyll. One page defines 2 categories in the front-matter as follows: categories: [document, new] And then in a layout I'm trying to output the categories object/array, but nothing is being output:

Array: {{…

JCraine
  • 1,159
  • 2
  • 20
  • 38
1
2
3
15 16