Jekyll Bits banner
yegor256 yegor256

Jekyll Bits

Development community

Description

Jekyll plugin with simple and nice tools for better blogging

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/jekyll-bits)](http://www.rultor.com/p/yegor256/jekyll-bits) [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)

[![Build Status](https://travis-ci.org/yegor256/jekyll-bits.svg)](https://travis-ci.org/yegor256/jekyll-bits) [![Gem Version](https://badge.fury.io/rb/jekyll-bits.svg)](http://badge.fury.io/rb/jekyll-bits) [![Dependency Status](https://gemnasium.com/yegor256/jekyll-bits.svg)](https://gemnasium.com/yegor256/jekyll-bits) [![Code Climate](http://img.shields.io/codeclimate/github/yegor256/jekyll-bits.svg)](https://codeclimate.com/github/yegor256/jekyll-bits)

It's a collection of very simply and useful [Jekyll](https://jekyllrb.com/) plugins, which I'm using on [my blog](https://github.com/yegor256/blog).

**ATTENTION**: You [can't](https://help.github.com/articles/adding-jekyll-plugins-to-a-github-pages-site/) use this plugin with GitHub Pages.

To start, add it to your `_config.yml`:

gems:
  - jekyll-bits

`jb_picture`

Add this to the [front matter](https://jekyllrb.com/docs/frontmatter/) of your Jekyll page:

---
jb_picture: http://...
---

Or with more details:

---
jb_picture:
  src: SRC attribute of  (mandatory)
  alt: ALT attribute of  (optional)
  href: HREF attribute of  (optional)
  caption: text of  (optional)
  width: width in pixels (optional)
  height: height in pixels (optional)
---

Then, in the HTML ``:

{{ page | jb_picture_head }}

This meta information will be rendered:

Then, in the HTML ``:

{{ page | jb_picture_body }}

Or this way:

{% jb_picture_body %}

Something like that will be rendered:


  
    ...
  
  ...

You can also define your pic