Skip to content

Commit

Permalink
adds meta
Browse files Browse the repository at this point in the history
  • Loading branch information
jancbeck committed Sep 14, 2016
1 parent 09f99bd commit e9d947f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ A simple drop-in implementation of [responsive images](https://responsiveimages.

[Download the latest release](https://github.com/jancbeck/kirby-responsive-images/releases/) and unpack to your kirby `/site/plugins` directory.

You can also rename the `responsive-images.php` file to `image.php` and move it to the `site/tags` directory if you prefer to keep all your custom tags there.

## Usage

There nothing you need to change in order to have responsive image support. Just include images as you would do normally:
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "kirby-responsive-images",
"description": "Bring responsive images to Kirby CMS",
"author": "Jan Beck <[email protected]>",
"version": "1.1.0",
"type": "kirby-plugin",
"license": "MIT"
}
4 changes: 2 additions & 2 deletions responsive-images.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// image tag
kirbytext::$tags['image'] = array(
$kirby->set('tag', 'image', array(
'attr' => array(
'width',
'height',
Expand Down Expand Up @@ -124,7 +124,7 @@
}

}
);
));

/**
* Returns the srcset attribute value for a given Kirby file
Expand Down

0 comments on commit e9d947f

Please sign in to comment.