<commit_before>My Image Tag
============

A [Liquid](http://www.liquidmarkup.org/) filter to generate an HTML img tag in Jekyll.

## Installation

All you need to do is to add the `my\_image\_tag.rb` file into your site `\_pluggins` directory.

## Usage

* my\_image\_tag

  This function uses the site.url configuration to be appended to the source attribute of the image.  
  It allow setting class names, ID, alternate text and enclose the image in a div tag (by default).

        {{ '/images/my-image.png' | img_tag: 'class names here' }} => Will render <div class="class names here"><img src="http://www.mysite.com/images/my-image.png" /></div>
        {{ '/images/my-image.png' | img_tag: 'class names here', 'image-id' }} => Will render <div class="class names here" id="image-id"><img src="http://www.mysite.com/images/my-image.png" /></div>
        {{ '/images/my-image.png' | img_tag: 'classname', 'image-id', 'Very cool' }} => Will render <div class="classname" id="image-id"><img src="http://www.mysite.com/images/my-image.png" alt="Very cool" /></div><commit_msg>Fixed typo in Readme file<commit_after>My Image Tag
============

A [Liquid](http://www.liquidmarkup.org/) filter to generate an HTML img tag in Jekyll.

## Installation

All you need to do is to add the `my_image_tag.rb` file into your site `_pluggins` directory.

## Usage

* my\_image\_tag

  This function uses the site.url configuration to be appended to the source attribute of the image.  
  It allow setting class names, ID, alternate text and enclose the image in a div tag (by default).

        {{ '/images/my-image.png' | img_tag: 'class names here' }} => Will render <div class="class names here"><img src="http://www.mysite.com/images/my-image.png" /></div>
        {{ '/images/my-image.png' | img_tag: 'class names here', 'image-id' }} => Will render <div class="class names here" id="image-id"><img src="http://www.mysite.com/images/my-image.png" /></div>
        {{ '/images/my-image.png' | img_tag: 'classname', 'image-id', 'Very cool' }} => Will render <div class="classname" id="image-id"><img src="http://www.mysite.com/images/my-image.png" alt="Very cool" /></div>
{'fraction_non_alphanumeric': 0.17244567730004623, 'fraction_numerical': 0.0, 'mean_word_length': 3.8088888888888888, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7671367', 'n_tokens_mistral': 702, 'n_tokens_neox': 681, 'n_words': 223}